/********************行政处罚JS***************/
//获取带"/"的项目名
var pathName=window.document.location.pathname;    
var contextPath=pathName.substring(0,pathName.substr(1).indexOf('/')+1);

//查看当前对象信息
function queryObject(bpTypeId,objectId){
	if(bpTypeId=="11"){//立案审批表
		queryPnlPor(objectId);
	}else if(bpTypeId=="12"){//案件处理呈批表（未超期权限）
		queryCaseApproval(objectId);
	}else if(bpTypeId=="13"){//案件处理呈批表（超期权限）
		queryCaseApproval(objectId);
	}else if(bpTypeId=="14"){//行政处罚告知书
		queryPriorinForm(objectId);
	}else if(bpTypeId=="15"){//行政处罚告知书送达回证
		queryPriorinFormAor(objectId);
	}else if(bpTypeId=="16"){//陈述笔录流程
		queryDefendOneSelf(objectId);
	}else if(bpTypeId=="17"){//行政处罚听证告知流程
		queryHowinForm(objectId);
	}else if(bpTypeId=="18"){//行政处罚听证告知书送达流程
	    queryHowinFormAor(objectId);
	}else if(bpTypeId=="19"){//行政处罚听证通知流程
	    queryHowNotice(objectId);
	}else if(bpTypeId=="20"){//行政处罚听证通知书送达流程
		queryHowNoticeAor(objectId);
	}else if(bpTypeId=="21"){//行政处罚听证笔录流程
		queryHowRecord(objectId);
	}else if(bpTypeId=="22"){//行政处罚听证会报告流程
	    queryHowReport(objectId);
	}else if(bpTypeId=="23"){//行政处罚决定流程
	    queryDecision(objectId);
	}else if(bpTypeId=="24"){//行政处罚决定书送达流程
	    queryDecisionAor(objectId);
	}else if(bpTypeId=="25"){//罚款催缴通知流程
	    queryPenaltyUrge(objectId);
	}else if(bpTypeId=="26"){//罚款催缴通知书送达流程
	    queryPenaltyUrgeAor(objectId);
	}else if(bpTypeId=="27"){//结案处理报批表
		queryFinalApproval(objectId);
	}else if(bpTypeId=="33"){//调查取证流程
	    queryInvestigate(objectId);
	}else if(bpTypeId=="41"){//提交材料通知书
		querySubmittedMa(objectId);
	}else if(bpTypeId=="42"){//延期（分期）缴纳罚款审批表
	    queryPnlDelay(objectId);
	}else if(bpTypeId=="43"){//延期（分期）缴纳罚款批准书
	    queryPnlDelayApproval(objectId);
	}else if(bpTypeId=="44"){//鉴定委托书
	    queryAuthorization(objectId);
	}else if(bpTypeId=="45"){//勘验笔录
	    queryInquesttranscripts(objectId);
	}else if(bpTypeId=="46"){//抽样取证凭证
	    querySamplingforensics(objectId);
	}else if(bpTypeId=="47"){//行政处罚集体讨论
		queryCollectiveDiscuss(objectId);
	}else if(bpTypeId=="48"){//强制执行申请书
	    queryComExcecution(objectId);
	}else if(bpTypeId=="49"){//结案延期申请第一次
	    queryFinalDelay(objectId);   
	}else if(bpTypeId=="50"){//结案延期申请第二次
	    queryFinalDelay(objectId);                   
	}else if(bpTypeId=="51"){//案件移送审批流程
	    queryPorTransfer(objectId);
	}else if(bpTypeId=="52"){//案件移送书流程
	    queryPorTransferRecord(objectId);
	}else if(bpTypeId=="53"){//卷内目录
		queryVolumeCatalog(objectId);
	}else if(bpTypeId=="54"){//安全生产违法案件案卷（首页）
	    queryIllegalVolume(objectId);
	}
}

//修改当前对象信息
function updateObject(bpTypeId,objectId){
	var isShowPrint="1";
	if(bpTypeId=="11"){//立案审批表
		var return_value=window.showModalDialog(contextPath+"/execution/pnlpor!pnlPorQueryForword.action?flag=update&pnlPorId="+objectId,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
		isShowPrint="0";
	}else if(bpTypeId=="12"){//案件处理呈批表（未超期权限）
		var return_value=window.showModalDialog(contextPath+"/execution/caseapproval!caseApprovalQueryForword.action?flag=update&caseApprovalId="+objectId,"","dialogHeight:730px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
		isShowPrint="0";
	}else if(bpTypeId=="13"){//案件处理呈批表（超期权限）
		var return_value=window.showModalDialog(contextPath+"/execution/caseapproval!caseApprovalQueryForword.action?flag=update&caseApprovalId="+objectId,"","dialogHeight:730px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
		isShowPrint="0";
	}else if(bpTypeId=="14"){//行政处罚事先告知书
		var return_value=window.showModalDialog(contextPath+"/execution/priorinform!priorinFormQueryForword.action?flag=update&priorinFormId="+objectId,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="15"){//行政处罚告知书送达回证
		var return_value=window.showModalDialog(contextPath+"/execution/priorinformaor!priorinFormAorQueryForword.action?flag=update&priorinFormAorId="+objectId,"","dialogHeight:505px;dialogWidth:749px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="16"){//陈述笔录流程
	   var return_value=window.showModalDialog(contextPath+"/execution/defendoneself!defendOneSelfQueryForword.action?flag=update&defendOneSelfId="+objectId,"","dialogHeight:720px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="17"){//行政处罚听证告知流程
	   var return_value=window.showModalDialog(contextPath+"/execution/howinform!howinFormQueryForword.action?flag=update&howinFormId="+objectId,"","dialogHeight:720px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="18"){//行政处罚听证告知书送达流程
		var return_value=window.showModalDialog(contextPath+"/execution/howinformaor!howinFormAorQueryForword.action?flag=update&howinFormAorId="+objectId,"","dialogHeight:485px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="19"){//行政处罚听证通知流程
	   var return_value=window.showModalDialog(contextPath+"/execution/hownotice!howNoticeQueryForword.action?flag=update&howNoticeId="+objectId,"","dialogHeight:720px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="20"){//行政处罚听证通知书送达流程
		var return_value=window.showModalDialog(contextPath+"/execution/hownoticeaor!howNoticeAorQueryForword.action?flag=update&howNoticeAorId="+objectId,"","dialogHeight:720px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="21"){//行政处罚听证笔录流程
		var return_value=window.showModalDialog(contextPath+"/execution/howrecord!howRecordQueryForword.action?flag=update&howRecordId="+objectId,"","dialogHeight:720px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="22"){//行政处罚听证会报告流程
	   var return_value=window.showModalDialog(contextPath+"/execution/howreport!howReportQueryForword.action?flag=update&howReportId="+objectId,"","dialogHeight:720px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="23"){//行政处罚决定流程
        var return_value=window.showModalDialog(contextPath+"/execution/decision!decisionQueryForword.action?flag=update&decisionId="+objectId,"","dialogHeight:720px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");		  
	}else if(bpTypeId=="24"){//行政处罚决定书送达流程
	    var return_value=window.showModalDialog(contextPath+"/execution/decisionaor!decisionAorQueryForword.action?flag=update&decisionAorId="+objectId,"","dialogHeight:550px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");	
	}else if(bpTypeId=="25"){//罚款催缴通知流程
	    var return_value=window.showModalDialog(contextPath+"/execution/penaltyurge!penaltyUrgeQueryForword.action?flag=update&penaltyUrgeId="+objectId,"","dialogHeight:550px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");	
	}else if(bpTypeId=="26"){//罚款催缴通知书送达流程
	   var return_value=window.showModalDialog(contextPath+"/execution/penaltyurgeaor!penaltyUrgeAorQueryForword.action?flag=update&penaltyUrgeAorId="+objectId,"","dialogHeight:550px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");	
	}else if(bpTypeId=="27"){//结案报批流程  
	   var return_value=window.showModalDialog(contextPath+"/execution/finalapproval!finalApprovalQueryForword.action?flag=update&finalApprovalId="+objectId,"","dialogHeight:720px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");	
		isShowPrint="0";
	}else if(bpTypeId=="33"){//调查取证流程
	   var return_value=window.showModalDialog(contextPath+"/execution/investigate!investigateQueryForword.action?flag=update&investigateId="+objectId,"","dialogHeight:720px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="41"){//提交材料通知书
		var return_value=window.showModalDialog(contextPath+"/execution/submittedma!submittedMaQueryForword.action?flag=update&submittedMaId="+objectId,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="42"){//延期（分期）缴纳罚款审批表
	   var return_value=window.showModalDialog(contextPath+"/execution/pnldelay!pnlDelayQueryForword.action?flag=update&pnlDelayId="+objectId,"","dialogHeight:720px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	   isShowPrint="0";
	}else if(bpTypeId=="43"){//延期（分期）缴纳罚款批准书
	   var return_value=window.showModalDialog(contextPath+"/execution/pnldelayapproval!pnlDelayApprovalQueryForword.action?flag=update&pnlDelayApprovalId="+objectId,"","dialogHeight:550px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="44"){//鉴定委托书
	   var return_value=window.showModalDialog(contextPath+"/execution/authorization!investigateQueryForword.action?flag=update&authorizationId="+objectId,"","dialogHeight:720px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="45"){//勘验笔录
	   var return_value=window.showModalDialog(contextPath+"/execution/inquesttranscripts!investigateQueryForword.action?flag=update&authorizationId="+objectId,"","dialogHeight:720px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="46"){//抽样取证凭证
	   var return_value=window.showModalDialog(contextPath+"/execution/samplingforensics!investigateQueryForword.action?flag=update&authorizationId="+objectId,"","dialogHeight:720px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="47"){//行政处罚集体讨论
	   var return_value=window.showModalDialog(contextPath+"/execution/collectivediscuss!collectiveDiscussQueryForword.action?flag=update&collectiveDiscussId="+objectId,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="48"){//强制执行申请书
	   var return_value=window.showModalDialog(contextPath+"/execution/comexcecution!comExcecutionQueryForword.action?flag=update&comExcecutionId="+objectId,"","dialogHeight:720px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="49"){//结案延期申请第一次
	   var return_value=window.showModalDialog(contextPath+"/execution/finaldelay!finalDelayQueryForword.action?flag=update&finalDelayId="+objectId,"","dialogHeight:318px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="50"){//结案延期申请第二次
	   var return_value=window.showModalDialog(contextPath+"/execution/finaldelay!finalDelayQueryForword.action?flag=update&finalDelayId="+objectId,"","dialogHeight:318px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="51"){//案件移送审批流程
	    var return_value=window.showModalDialog(contextPath+"/execution/portransfer!porTransferQueryForword.action?flag=update&porTransferId="+objectId,"","dialogHeight:720px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
		isShowPrint="0";
	}else if(bpTypeId=="52"){//案件移送书流程
	    var return_value=window.showModalDialog(contextPath+"/execution/portransferrecord!porTransferRecordQueryForword.action?flag=update&porTransferRecordId="+objectId,"","dialogHeight:720px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="53"){//卷内目录
	    var return_value=window.showModalDialog(contextPath+"/execution/volumecatalog!volumeCatalogQueryForword.action?flag=update&volumeCatalogId="+objectId,"","dialogHeight:720px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="54"){//安全生产违法案件案卷（首页）
	    var return_value=window.showModalDialog(contextPath+"/execution/illegalvolume!illegalVolumeQueryForword.action?flag=update&illegalVolumeId="+objectId,"","dialogHeight:720px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	}
	if(return_value != null && return_value != "" && return_value == "true"){
    	if(isShowPrint=="1"){
    		printObject(bpTypeId,objectId);
    	}
    	var pageNum=document.getElementById("pageNum").value;
    	queryOverViewList(pageNum);
    }
}

//删除当前对象信息
function deleteObject(bpTypeId,objectId,remark){
	var msgName="";
	var url="";
	if(bpTypeId=="11"){//立案审批表
		msgName="立案审批表";
	}else if(bpTypeId=="12"){//案件处理呈批表（未超期权限）
		msgName="案件处理呈批表";
	}else if(bpTypeId=="13"){//案件处理呈批表（超期权限）
		msgName="案件处理呈批表";
	}else if(bpTypeId=="14"){//行政处罚告知书
		msgName="行政处罚告知书";
	}else if(bpTypeId=="15"){//行政处罚告知书送达回证
		msgName="行政处罚告知书送达回证";
	}else if(bpTypeId=="16"){//陈述笔录流程
		msgName="陈述笔录流程";
	}else if(bpTypeId=="17"){//行政处罚听证告知流程
		msgName="行政处罚听证告知流程";
	}else if(bpTypeId=="18"){//行政处罚听证告知送达回证流程
		msgName="行政处罚听证告知送达回证流程";
	}else if(bpTypeId=="19"){//行政处罚听证通知流程
	    msgName="行政处罚听证通知流程";
	}else if(bpTypeId=="20"){//行政处罚听证通知书送达流程
		msgName="行政处罚听证通知书送达流程";
	}else if(bpTypeId=="21"){//行政处罚听证笔录流程
		msgName="行政处罚听证笔录流程";
	}else if(bpTypeId=="22"){//行政处罚听证会报告流程
	    msgName="行政处罚听证会报告流程";
	}else if(bpTypeId=="23"){//行政处罚决定流程
	    msgName="行政处罚决定流程";
	}else if(bpTypeId=="24"){//行政处罚决定书送达流程
	    msgName="行政处罚决定书送达流程";
	}else if(bpTypeId=="25"){//罚款催缴通知流程
        msgName="罚款催缴通知流程";
	}else if(bpTypeId=="26"){//罚款催缴通知书送达流程
	    msgName="罚款催缴通知书送达流程";
	}else if(bpTypeId=="27"){//结案报批流程
	    msgName="结案报批流程";
	}else if(bpTypeId=="33"){//调查笔录
	    msgName="调查笔录";
	}else if(bpTypeId=="41"){//提交材料通知书
		msgName="提交材料通知书";
	}else if(bpTypeId=="42"){//延期（分期）缴纳罚款审批表
	    msgName="延期（分期）缴纳罚款审批表";
	}else if(bpTypeId=="43"){//延期（分期）缴纳罚款批准书
	    msgName="延期（分期）缴纳罚款批准书";
	}else if(bpTypeId=="44"){//鉴定委托书
	    msgName="鉴定委托书";
	}else if(bpTypeId=="45"){//勘验笔录
	    msgName="勘验笔录";
	}else if(bpTypeId=="46"){//抽样取证凭证
	    msgName="抽样取证凭证";
	}else if(bpTypeId=="47"){//行政处罚集体讨论记录
	    msgName="行政处罚集体讨论记录";
	}else if(bpTypeId=="48"){//强制执行申请书
	    msgName="强制执行申请书";
	}else if(bpTypeId=="49"){//结案延期申请第一次
		msgName="结案延期审批表";
	}else if(bpTypeId=="50"){//结案延期申请第二次
		msgName="结案延期审批表";
	}else if(bpTypeId=="51"){//案件移送审批流程
	    msgName="案件移送审批表";
	}else if(bpTypeId=="52"){//案件移送书流程
	    msgName="案件移送书";
	}else if(bpTypeId=="53"){//卷内目录
	    msgName="卷内目录";
	}else if(bpTypeId=="54"){//安全生产违法案件案卷（首页）
	    msgName="安全生产违法案件案卷（首页）";
	}
	
    Ext.Ajax.request({
		url: contextPath+"/execution/overview!overViewMarkDelete.action?bpTypeId="+bpTypeId+"&objectId="+objectId+"&remark="+encodeURIComponent(remark,'UTF-8'),
		success: function(request) {
           var data = Ext.util.JSON.decode(request.responseText);
		   if(data!=""){
		      if(data[0].msg=='success'){
		      	  
			      ymPrompt.succeedInfo(msgName+'信息作废成功！',null,null,'信息提示',function(button){if(button=='ok' || button=='close'){
					   queryOverViewList('1');
			      }});
			   }else{
			      
			      ymPrompt.errorInfo(msgName+'信息作废失败，请重新点击作废！',null,null,'信息提示',null);
			   }
		   }
	   } 
   });
}

//文书打印确认
function printObjectConfirm(bpTypeId,objectId,isPrint){
	ymPrompt.confirmInfo('所有信息是否已经核对？',null,null,'信息提示',function(button){
    	if(button=='1'){
    		printObject(bpTypeId,objectId);
    	}else if(button=='2'){
    		updateObject(bpTypeId,objectId);
    	}
   	},null,null,null,null,[['已核对','1'],['重新核对','2']]);
}

//打印当前对象信息
function printObject(bpTypeId,objectId){
	if(bpTypeId=="11"){//立案审批表
		var return_value=window.showModalDialog(contextPath+"/execution/pnlpor!pnlPorVerifyQueryForword.action?flag=print&pnlPorId="+objectId,"","dialogHeight:760px;dialogWidth:900px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="12"){//案件处理呈批表（未超出权限）
		var return_value=window.showModalDialog(contextPath+"/execution/caseapproval!caseApprovalVerifyQueryForword.action?flag=print&caseApprovalId="+objectId,"","dialogHeight:760px;dialogWidth:900px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="13"){//案件处理呈批表（超出权限）
		var return_value=window.showModalDialog(contextPath+"/execution/caseapproval!caseApprovalVerifyQueryForword.action?flag=print&caseApprovalId="+objectId,"","dialogHeight:760px;dialogWidth:900px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="14"){//行政处罚事先告知书
		var return_value=window.showModalDialog(contextPath+"/execution/priorinform!priorinFormQueryForword.action?flag=print&priorinFormId="+objectId,"","dialogHeight:760px;dialogWidth:900px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="15"){//行政处罚告知书送达回证
		var return_value=window.showModalDialog(contextPath+"/execution/priorinformaor!priorinFormAorQueryForword.action?flag=print&priorinFormAorId="+objectId,"","dialogHeight:760px;dialogWidth:900px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="16"){//陈述笔录流程
		var return_value=window.showModalDialog(contextPath+"/execution/defendoneself!defendOneSelfQueryForword.action?flag=print&defendOneSelfId="+objectId,"","dialogHeight:760px;dialogWidth:900px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="17"){//行政处罚听证告知流程
		var return_value=window.showModalDialog(contextPath+"/execution/howinform!howinFormQueryForword.action?flag=print&howinFormId="+objectId,"","dialogHeight:760px;dialogWidth:900px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="18"){//行政处罚听证告知书送达流程
	    var return_value=window.showModalDialog(contextPath+"/execution/howinformaor!howinFormAorQueryForword.action?flag=print&howinFormAorId="+objectId,"","dialogHeight:760px;dialogWidth:900px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="19"){//行政处罚听证通知流程
	    var return_value=window.showModalDialog(contextPath+"/execution/hownotice!howNoticeQueryForword.action?flag=print&howNoticeId="+objectId,"","dialogHeight:760px;dialogWidth:900px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="20"){//行政处罚听证通知书送达流程
		var return_value=window.showModalDialog(contextPath+"/execution/hownoticeaor!howNoticeAorQueryForword.action?flag=print&howNoticeAorId="+objectId,"","dialogHeight:760px;dialogWidth:900px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="21"){//行政处罚听证笔录流程
		var return_value=window.showModalDialog(contextPath+"/execution/howrecord!howRecordQueryForword.action?flag=print&howRecordId="+objectId,"","dialogHeight:760px;dialogWidth:900px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="22"){//行政处罚听证会报告流程
	   	var return_value=window.showModalDialog(contextPath+"/execution/howreport!howReportQueryForword.action?flag=print&howReportId="+objectId,"","dialogHeight:760px;dialogWidth:900px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="23"){//行政处罚决定流程
	    var return_value=window.showModalDialog(contextPath+"/execution/decision!decisionQueryForword.action?flag=print&decisionId="+objectId,"","dialogHeight:760px;dialogWidth:900px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="24"){//行政处罚决定书送达流程
	    var return_value=window.showModalDialog(contextPath+"/execution/decisionaor!decisionAorQueryForword.action?flag=print&decisionAorId="+objectId,"","dialogHeight:760px;dialogWidth:900px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="25"){//罚款催缴通知流程
	    var return_value=window.showModalDialog(contextPath+"/execution/penaltyurge!penaltyUrgeQueryForword.action?flag=print&penaltyUrgeId="+objectId,"","dialogHeight:760px;dialogWidth:900px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="26"){//罚款催缴通知书送达流程
	  	var return_value=window.showModalDialog(contextPath+"/execution/penaltyurgeaor!penaltyUrgeAorQueryForword.action?flag=print&penaltyUrgeAorId="+objectId,"","dialogHeight:760px;dialogWidth:900px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="27"){//结案报批流程
	  	var return_value=window.showModalDialog(contextPath+"/execution/finalapproval!finalApprovalVerifyQueryForword.action?flag=print&finalApprovalId="+objectId,"","dialogHeight:760px;dialogWidth:900px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="33"){//调查取证流程
	   var return_value=window.showModalDialog(contextPath+"/execution/investigate!investigateQueryForword.action?flag=print&investigateId="+objectId,"","dialogHeight:720px;dialogWidth:900px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="41"){//提交材料通知书
		var return_value=window.showModalDialog(contextPath+"/execution/submittedma!submittedMaQueryForword.action?flag=print&submittedMaId="+objectId,"","dialogHeight:760px;dialogWidth:900px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="42"){//延期（分期）缴纳罚款审批表
	    var return_value=window.showModalDialog(contextPath+"/execution/pnldelay!pnlDelayVerifyQueryForword.action?flag=print&pnlDelayId="+objectId,"","dialogHeight:760px;dialogWidth:900px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="43"){//延期（分期）缴纳罚款批准书
	    var return_value=window.showModalDialog(contextPath+"/execution/pnldelayapproval!pnlDelayApprovalQueryForword.action?flag=print&pnlDelayApprovalId="+objectId,"","dialogHeight:760px;dialogWidth:900px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="44"){//鉴定委托书
	    var return_value=window.showModalDialog(contextPath+"/execution/authorization!investigateQueryForword.action?flag=print&authorizationId="+objectId,"","dialogHeight:760px;dialogWidth:900px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="45"){//勘验笔录
	    var return_value=window.showModalDialog(contextPath+"/execution/inquesttranscripts!investigateQueryForword.action?flag=print&authorizationId="+objectId,"","dialogHeight:760px;dialogWidth:900px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="46"){//抽样取证凭证
	    var return_value=window.showModalDialog(contextPath+"/execution/samplingforensics!investigateQueryForword.action?flag=print&authorizationId="+objectId,"","dialogHeight:760px;dialogWidth:900px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="47"){//行政处罚集体讨论记录
	    var return_value=window.showModalDialog(contextPath+"/execution/collectivediscuss!collectiveDiscussQueryForword.action?flag=print&collectiveDiscussId="+objectId,"","dialogHeight:760px;dialogWidth:900px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="48"){//强制执行申请书
	    var return_value=window.showModalDialog(contextPath+"/execution/comexcecution!comExcecutionQueryForword.action?flag=print&comExcecutionId="+objectId,"","dialogHeight:760px;dialogWidth:900px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="51"){//案件移送审批流程
	    var return_value=window.showModalDialog(contextPath+"/execution/portransfer!porTransferVerifyQueryForword.action?flag=print&porTransferId="+objectId,"","dialogHeight:760px;dialogWidth:900px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="52"){//案件移送书流程
	    var return_value=window.showModalDialog(contextPath+"/execution/portransferrecord!porTransferRecordQueryForword.action?flag=print&porTransferRecordId="+objectId,"","dialogHeight:760px;dialogWidth:900px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="53"){//卷内目录
		var return_value=window.showModalDialog(contextPath+"/execution/volumecatalog!volumeCatalogQueryForword.action?flag=print&volumeCatalogId="+objectId,"","dialogHeight:760px;dialogWidth:900px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="54"){//安全生产违法案件案卷（首页）
		var return_value=window.showModalDialog(contextPath+"/execution/illegalvolume!illegalVolumeQueryForword.action?flag=print&illegalVolumeId="+objectId,"","dialogHeight:760px;dialogWidth:900px;status:no;help=no,resizable=no;edge:sunken;");
	}
	if(return_value != null && return_value != ""){
    	var jsonObject=eval(return_value);
	  	var isEnterNextBp=jsonObject[0].isEnterNextBp;
	  	if(isEnterNextBp=="true"){
	  		judgeNextBp(jsonObject[0].porId,jsonObject[0].overViewId);
	  	}else{
	  		updateObject(bpTypeId,objectId);
	  	}
    }	
}

//下一步操作对象信息
function nextObject(obj){
	var paramArray = obj.value.split(",");
	var bpTypeId=paramArray[0];
	var nextConditionId1=paramArray[1];
	var nextConditionId2=paramArray[2];
	var nextConditionId3=paramArray[3];
	var nextConditionId4=paramArray[4];
	var nextConditionId5=paramArray[5];
	var isShowPrint="1";
	var contextPath = getContextPath();
	if(bpTypeId=="0"){
		isShowPrint="0";
		if(nextConditionId1=="1"){
			var url = contextPath+"/pnlPorAddForword?porType=1&inpectionPandectId="+nextConditionId2;
			Modalshow('新增立案审批信息',url,900,700,2);
		}else if(nextConditionId1=="2"){
			if(nextConditionId2=="0"){
				return_value=window.showModalDialog(contextPath+"/execution/pnlpor!pnlPorAddForword.action?porType=2&accidentDetailsId="+nextConditionId3,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
			}else{
				ymPrompt.confirmInfo('您是否还需要对当前案件再次添加立案审批表，选择否则流程结束？',null,null,'信息提示',function(button){
			    	if(button=='1'){
			    		var return_value=window.showModalDialog(contextPath+"/execution/pnlpor!pnlPorAddForword.action?porType=2&accidentDetailsId="+nextConditionId3,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
						if(return_value != null && return_value != ""){
					    	queryOverViewList("1");
					    }
			    	}else if(button=='2'){
			    		accidentMarkAchives(nextConditionId3);
			    	}
			   	},null,null,null,null,[['  是  ','1'],['  否  ','2']]);
			}
		}
	}else if(bpTypeId=="11"){//立案审批表
		if(nextConditionId1=="1"){
			if(nextConditionId2=="33"){
				ymPrompt.confirmInfo('您下一步将进入调查取证阶段，进入后将不能修改当前阶段的信息，是否确定进入？',null,null,'信息提示',function(button){
			    	if(button=='1'){
			    		enterNextBp(bpTypeId,nextConditionId2,nextConditionId3);
			    	}
			   	},null,null,null,null,[['  是  ','1'],['  否  ','2']]);
			}else{
				ymPrompt.confirmInfo('您下一步将进入案件处理呈批阶段，进入后将不能修改当前阶段的信息，是否确定进入？',null,null,'信息提示',function(button){
			    	if(button=='1'){
			    		enterNextBp(bpTypeId,nextConditionId2,nextConditionId3);
			    	}
			   	},null,null,null,null,[['  是  ','1'],['  否  ','2']]);
			}
		}else{
			if(nextConditionId2=="33"){
				ymPrompt.confirmInfo('是否需要进行调查笔录操作?',null,null,'信息提示',function(button){
	    			if(button=='1'){
	    	    		//添加调查取证转发
	    	    		var return_value=window.showModalDialog(contextPath+"/execution/investigate!investigateAddForword.action?overViewId="+nextConditionId3,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
					    if(return_value != null && return_value != ""){
							var jsonObject=eval(return_value);
						  	printObject(jsonObject[0].bpTypeId,jsonObject[0].objectId)
					    	queryOverViewList('1');
					    }
		    		}else if(button=='2'){
				    	ymPrompt.confirmInfo('是否需要进行提交材料通知书操作?',null,null,'信息提示',function(button){
				   			if(button=='1'){
				   	    		//添加提交材料通知书转发
				   	    		var return_value=window.showModalDialog(contextPath+"/execution/submittedma!submittedMaAddForword.action?overViewId="+nextConditionId3,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
							    if(return_value != null && return_value != ""){
									var jsonObject=eval(return_value);
								  	printObject(jsonObject[0].bpTypeId,jsonObject[0].objectId)
							    	queryOverViewList('1');
							    }
				    		}else if(button=='2'){
						    	ymPrompt.confirmInfo('是否需要进行鉴定委托书操作?',null,null,'信息提示',function(button){
					    			if(button=='1'){
					    	    		//添加鉴定委托书转发
					    	    		var return_value=window.showModalDialog(contextPath+"/execution/authorization!investigateAddForword.action?overViewId="+nextConditionId3,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
									    if(return_value != null && return_value != ""){
											var jsonObject=eval(return_value);
										  	printObject(jsonObject[0].bpTypeId,jsonObject[0].objectId)
									    	queryOverViewList('1');
									    }
						    		}else if(button=='2'){
								    	ymPrompt.confirmInfo('是否需要进行勘验笔录操作?',null,null,'信息提示',function(button){
							    			if(button=='1'){
							    	    		//添加勘验笔录转发
							    	    		var return_value=window.showModalDialog(contextPath+"/execution/inquesttranscripts!investigateAddForword.action?overViewId="+nextConditionId3,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
											    if(return_value != null && return_value != ""){
													var jsonObject=eval(return_value);
												  	printObject(jsonObject[0].bpTypeId,jsonObject[0].objectId)
											    	queryOverViewList('1');
											    }
								    		}else if(button=='2'){
										    	ymPrompt.confirmInfo('是否需要进行抽样取证凭证操作?',null,null,'信息提示',function(button){
									    			if(button=='1'){
									    	    		//添加抽样取证凭证转发
									    	    		var return_value=window.showModalDialog(contextPath+"/execution/samplingforensics!investigateAddForword.action?overViewId="+nextConditionId3,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
													    if(return_value != null && return_value != ""){
															var jsonObject=eval(return_value);
														  	printObject(jsonObject[0].bpTypeId,jsonObject[0].objectId)
													    	queryOverViewList('1');
													    }
										    		}else if(button=='2'){
												    	ymPrompt.confirmInfo('您下一步将进入案件处理呈批阶段，进入后将不能修改当前阶段的信息，是否确定进入？',null,null,'信息提示',function(button){
													    	if(button=='1'){
													    		enterNextBp(nextConditionId2,"47",nextConditionId3);
													    	}
													   	},null,null,null,null,[['  是  ','1'],['  否  ','2']]);
										    		}
										   		},null,null,null,null,[[' 是 ','1'],[' 否 ','2']]);
								    		}
								   		},null,null,null,null,[[' 是 ','1'],[' 否 ','2']]);
						    		}
						   		},null,null,null,null,[[' 是 ','1'],[' 否 ','2']]);
				   			}
		   				},null,null,null,null,[[' 是 ','1'],[' 否 ','2']]);
		    		}
		   		},null,null,null,null,[[' 是 ','1'],[' 否 ','2']]);
			}else if(nextConditionId2=="47"){
				ymPrompt.confirmInfo('是否需要进行行政处罚集体讨论操作！',null,null,'信息提示',function(button){
	    			if(button=='1'){
	    	    		//添加行政处罚集体讨论记录转发
	    	    		///window.showModelessDialog(contextPath+"/execution/collectivediscuss!collectiveDiscussAddForword.action?pnlPorId="+pnlPorId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
	  					var return_value=window.showModalDialog(contextPath+"/execution/collectivediscuss!collectiveDiscussAddForword.action?pnlPorId="+nextConditionId3,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
		    			if(return_value != null && return_value != ""){
							var jsonObject=eval(return_value);
						  	printObject(jsonObject[0].bpTypeId,jsonObject[0].objectId)
					    	queryOverViewList('1');
					    }
		    		}else if(button=='2'){
				    	//添加案件处理呈批转发
				    	//window.showModelessDialog(contextPath+"/execution/caseapproval!caseApprovalAddForword.action?pnlPorId="+pnlPorId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
				  		var return_value=window.showModalDialog(contextPath+"/execution/caseapproval!caseApprovalAddForword.action?pnlPorId="+nextConditionId3,"","dialogHeight:768px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
		    			if(return_value != null && return_value != ""){
					    	queryOverViewList('1');
					    }
		    		}
		   		},null,null,null,null,[[' 是 ','1'],[' 否 ','2']]);
			}else if(nextConditionId2=="14"){//进入事先告知阶段
				var return_value=window.showModalDialog(contextPath+"/execution/priorinform!priorinFormAddForword.action?overViewId="+nextConditionId3,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
			}else if(nextConditionId2=="23"){//处罚决定书
				var return_value=window.showModalDialog(contextPath+"/execution/decision!decisionAddForword.action?overViewId="+nextConditionId3,"","dialogHeight:768px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
			}else if(nextConditionId2=="48"){//强制执行申请
				var return_value=window.showModalDialog(contextPath+"/execution/comexcecution!comExcecutionAddForword.action?overViewId="+nextConditionId3+"&userId="+nextConditionId4+"&isMarker="+nextConditionId5,"","dialogHeight:590px;dialogWidth:749px;status:no;help=no,resizable=no;edge:sunken;");
			}else if(nextConditionId2=="27"){
				var return_value=window.showModalDialog(contextPath+"/execution/finalapproval!finalApprovalAddForword.action?pnlPorId="+nextConditionId3,"","dialogHeight:640px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
				isShowPrint="0";
			}else if(nextConditionId2=="51"){//案件移送申请
				ymPrompt.confirmInfo('是否需要对该案件进行移送操作！',null,null,'信息提示',function(button){
	    			if(button=='1'){
	    	    		//添加案件移送申请记录转发
	  					var return_value=window.showModalDialog(contextPath+"/execution/portransfer!porTransferAddForword.action?pnlPorId="+nextConditionId3,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
		    			if(return_value != null && return_value != ""){
					    	queryOverViewList('1');
					    }
		    		}else if(button=='2'){
				    	ymPrompt.confirmInfo('是否需要进行行政处罚集体讨论操作！',null,null,'信息提示',function(button){
			    			if(button=='1'){
			    	    		//添加行政处罚集体讨论记录转发
			  					var return_value=window.showModalDialog(contextPath+"/execution/collectivediscuss!collectiveDiscussAddForword.action?pnlPorId="+nextConditionId3,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
				    			if(return_value != null && return_value != ""){
									var jsonObject=eval(return_value);
								  	printObject(jsonObject[0].bpTypeId,jsonObject[0].objectId)
							    	queryOverViewList('1');
							    }
				    		}else if(button=='2'){
						    	//添加案件处理呈批转发
						  		var return_value=window.showModalDialog(contextPath+"/execution/caseapproval!caseApprovalAddForword.action?pnlPorId="+nextConditionId3,"","dialogHeight:768px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
				    			if(return_value != null && return_value != ""){
							    	queryOverViewList('1');
							    }
				    		}
				   		},null,null,null,null,[[' 是 ','1'],[' 否 ','2']]);
		    		}
		   		},null,null,null,null,[[' 是 ','1'],[' 否 ','2']]);
			}
		}
	}else if(bpTypeId=="33"){
		ymPrompt.confirmInfo('是否需要进行提交材料通知书操作?',null,null,'信息提示',function(button){
   			if(button=='1'){
   	    		//添加提交材料通知书转发
   	    		var return_value=window.showModalDialog(contextPath+"/execution/submittedma!submittedMaAddForword.action?overViewId="+nextConditionId1,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
			    if(return_value != null && return_value != ""){
					var jsonObject=eval(return_value);
				  	printObject(jsonObject[0].bpTypeId,jsonObject[0].objectId)
			    	queryOverViewList('1');
			    }
    		}else if(button=='2'){
				ymPrompt.confirmInfo('是否需要进行鉴定委托书操作?',null,null,'信息提示',function(button){
		   			if(button=='1'){
		   	    		//添加鉴定委托书转发
		   	    		var return_value=window.showModalDialog(contextPath+"/execution/authorization!investigateAddForword.action?overViewId="+nextConditionId1,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
					    if(return_value != null && return_value != ""){
							var jsonObject=eval(return_value);
						  	printObject(jsonObject[0].bpTypeId,jsonObject[0].objectId)
					    	queryOverViewList('1');
					    }
		    		}else if(button=='2'){
				    	ymPrompt.confirmInfo('是否需要进行勘验笔录操作?',null,null,'信息提示',function(button){
			    			if(button=='1'){
			    	    		//添加勘验笔录转发
			    	    		var return_value=window.showModalDialog(contextPath+"/execution/inquesttranscripts!investigateAddForword.action?overViewId="+nextConditionId1,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
							    if(return_value != null && return_value != ""){
									var jsonObject=eval(return_value);
								  	printObject(jsonObject[0].bpTypeId,jsonObject[0].objectId)
							    	queryOverViewList('1');
							    }
				    		}else if(button=='2'){
						    	ymPrompt.confirmInfo('是否需要进行抽样取证凭证操作?',null,null,'信息提示',function(button){
					    			if(button=='1'){
					    	    		//添加抽样取证凭证转发
					    	    		var return_value=window.showModalDialog(contextPath+"/execution/samplingforensics!investigateAddForword.action?overViewId="+nextConditionId1,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
									    if(return_value != null && return_value != ""){
											var jsonObject=eval(return_value);
										  	printObject(jsonObject[0].bpTypeId,jsonObject[0].objectId)
									    	queryOverViewList('1');
									    }
						    		}else if(button=='2'){
								    	ymPrompt.confirmInfo('您下一步将进入案件处理呈批阶段，进入后将不能修改当前阶段的信息，是否确定进入？',null,null,'信息提示',function(button){
									    	if(button=='1'){
									    		enterNextBp(bpTypeId,"47",nextConditionId1);
									    	}
									   	},null,null,null,null,[['  是  ','1'],['  否  ','2']]);
						    		}
						   		},null,null,null,null,[[' 是 ','1'],[' 否 ','2']]);
				    		}
				   		},null,null,null,null,[[' 是 ','1'],[' 否 ','2']]);
		    		}
		   		},null,null,null,null,[[' 是 ','1'],[' 否 ','2']]);
   			}
   		},null,null,null,null,[[' 是 ','1'],[' 否 ','2']]);
	}else if(bpTypeId=="41"){
		ymPrompt.confirmInfo('是否需要进行鉴定委托书操作?',null,null,'信息提示',function(button){
   			if(button=='1'){
   	    		//添加鉴定委托书转发
   	    		var return_value=window.showModalDialog(contextPath+"/execution/authorization!investigateAddForword.action?overViewId="+nextConditionId1,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
			    if(return_value != null && return_value != ""){
					var jsonObject=eval(return_value);
				  	printObject(jsonObject[0].bpTypeId,jsonObject[0].objectId)
			    	queryOverViewList('1');
			    }
    		}else if(button=='2'){
				ymPrompt.confirmInfo('是否需要进行勘验笔录操作?',null,null,'信息提示',function(button){
		   			if(button=='1'){
		   	    		//添加勘验笔录转发
		   	    		var return_value=window.showModalDialog(contextPath+"/execution/inquesttranscripts!investigateAddForword.action?overViewId="+nextConditionId1,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
					    if(return_value != null && return_value != ""){
							var jsonObject=eval(return_value);
						  	printObject(jsonObject[0].bpTypeId,jsonObject[0].objectId)
					    	queryOverViewList('1');
					    }
		    		}else if(button=='2'){
				    	ymPrompt.confirmInfo('是否需要进行抽样取证凭证操作?',null,null,'信息提示',function(button){
			    			if(button=='1'){
			    	    		//添加抽样取证凭证转发
			    	    		var return_value=window.showModalDialog(contextPath+"/execution/samplingforensics!investigateAddForword.action?overViewId="+nextConditionId1,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
							    if(return_value != null && return_value != ""){
									var jsonObject=eval(return_value);
								  	printObject(jsonObject[0].bpTypeId,jsonObject[0].objectId)
							    	queryOverViewList('1');
							    }
				    		}else if(button=='2'){
						    	ymPrompt.confirmInfo('您下一步将进入案件处理呈批阶段，进入后将不能修改当前阶段的信息，是否确定进入？',null,null,'信息提示',function(button){
							    	if(button=='1'){
							    		enterNextBp(bpTypeId,"47",nextConditionId1);
							    	}
							   	},null,null,null,null,[['  是  ','1'],['  否  ','2']]);
				    		}
				   		},null,null,null,null,[[' 是 ','1'],[' 否 ','2']]);
		    		}
		   		},null,null,null,null,[[' 是 ','1'],[' 否 ','2']]);
			}
   		},null,null,null,null,[[' 是 ','1'],[' 否 ','2']]);
	}else if(bpTypeId=="44"){
		ymPrompt.confirmInfo('是否需要进行勘验笔录操作?',null,null,'信息提示',function(button){
   			if(button=='1'){
   	    		//添加勘验笔录转发
   	    		var return_value=window.showModalDialog(contextPath+"/execution/inquesttranscripts!investigateAddForword.action?overViewId="+nextConditionId1,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
			    if(return_value != null && return_value != ""){
					var jsonObject=eval(return_value);
				  	printObject(jsonObject[0].bpTypeId,jsonObject[0].objectId)
			    	queryOverViewList('1');
			    }
    		}else if(button=='2'){
				ymPrompt.confirmInfo('是否需要进行抽样取证凭证操作?',null,null,'信息提示',function(button){
		   			if(button=='1'){
		   	    		//添加抽样取证凭证转发
		   	    		var return_value=window.showModalDialog(contextPath+"/execution/samplingforensics!investigateAddForword.action?overViewId="+nextConditionId1,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
					    if(return_value != null && return_value != ""){
							var jsonObject=eval(return_value);
						  	printObject(jsonObject[0].bpTypeId,jsonObject[0].objectId)
					    	queryOverViewList('1');
					    }
		    		}else if(button=='2'){
				    	ymPrompt.confirmInfo('您下一步将进入案件处理呈批阶段，进入后将不能修改当前阶段的信息，是否确定进入？',null,null,'信息提示',function(button){
					    	if(button=='1'){
					    		enterNextBp(bpTypeId,"47",nextConditionId1);
					    	}
					   	},null,null,null,null,[['  是  ','1'],['  否  ','2']]);
		    		}
		   		},null,null,null,null,[[' 是 ','1'],[' 否 ','2']]);
	   		}
   		},null,null,null,null,[[' 是 ','1'],[' 否 ','2']]);
	}else if(bpTypeId=="45"){
		ymPrompt.confirmInfo('是否需要进行抽样取证凭证操作?',null,null,'信息提示',function(button){
   			if(button=='1'){
   	    		//添加抽样取证凭证转发
   	    		var return_value=window.showModalDialog(contextPath+"/execution/samplingforensics!investigateAddForword.action?overViewId="+nextConditionId1,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
			    if(return_value != null && return_value != ""){
					var jsonObject=eval(return_value);
				  	printObject(jsonObject[0].bpTypeId,jsonObject[0].objectId)
			    	queryOverViewList('1');
			    }
    		}else if(button=='2'){
				ymPrompt.confirmInfo('您下一步将进入案件处理呈批阶段，进入后将不能修改当前阶段的信息，是否确定进入？',null,null,'信息提示',function(button){
			    	if(button=='1'){
			    		enterNextBp(bpTypeId,"47",nextConditionId1);
			    	}
			   	},null,null,null,null,[['  是  ','1'],['  否  ','2']]);
	   		}
	   	},null,null,null,null,[['  是  ','1'],['  否  ','2']]);
	}else if(bpTypeId=="46"){
		ymPrompt.confirmInfo('您下一步将进入案件处理呈批阶段，进入后将不能修改当前阶段的信息，是否确定进入？',null,null,'信息提示',function(button){
	    	if(button=='1'){
	    		enterNextBp(bpTypeId,"47",nextConditionId1);
	    	}
	   	},null,null,null,null,[['  是  ','1'],['  否  ','2']]);
	}else if(bpTypeId=="12" || bpTypeId=="13" ){//案件处理呈批表
		if(nextConditionId1=="1"){
			if(nextConditionId2=="14"){
				ymPrompt.confirmInfo('您下一步将进入事先告知阶段，进入后将不能修改当前阶段的信息，是否确定进入？',null,null,'信息提示',function(button){
			    	if(button=='1'){
			    		if(nextConditionId4=="2"){//表示再次呈批后进入的流程
			    			enterNextBp(bpTypeId+"_again",nextConditionId2,nextConditionId3);
			    		}else{
			    			enterNextBp(bpTypeId,nextConditionId2,nextConditionId3);
			    		}
			    	}
			   	},null,null,null,null,[['  是  ','1'],['  否  ','2']]);
			}else if(nextConditionId2=="23"){
				ymPrompt.confirmInfo('您下一步将进入处罚阶段，进入后将不能修改当前阶段的信息，是否确定进入？',null,null,'信息提示',function(button){
			    	if(button=='1'){
			    		enterNextBp("23",nextConditionId2,nextConditionId3);
			    	}
			   	},null,null,null,null,[['  是  ','1'],['  否  ','2']]);
			}else if(nextConditionId2=="27"){
				ymPrompt.confirmInfo('您下一步将进入结案阶段，进入后将不能修改当前阶段的信息，是否确定进入？',null,null,'信息提示',function(button){
			    	if(button=='1'){
			    		enterNextBp(nextConditionId4,nextConditionId2,nextConditionId3);
			    	}
			   	},null,null,null,null,[['  是  ','1'],['  否  ','2']]);
			}
		}else if(nextConditionId1=="2"){
			
		}else{
			//行政处罚集体讨论
			if(nextConditionId2=="47"){
				var return_value=window.showModalDialog(contextPath+"/execution/collectivediscuss!collectiveDiscussAddForword.action?caseApprovalId="+nextConditionId3+"&overViewId="+nextConditionId4,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
			}else if(nextConditionId2=="14"){//进入事先告知阶段
				var return_value=window.showModalDialog(contextPath+"/execution/priorinform!priorinFormAddForword.action?overViewId="+nextConditionId3,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
			}else if(nextConditionId2=="27"){//进入处罚阶段
				var return_value=window.showModalDialog(contextPath+"/execution/decision!decisionAddForword.action?overViewId="+nextConditionId3,"","dialogHeight:768px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
				isShowPrint="0";
			}
		}
	}else if(bpTypeId=="47"){//行政处罚集体讨论
		if(nextConditionId1=="1"){
		
		}else if(nextConditionId1=="2"){
			ymPrompt.confirmInfo('您下一步将返回案件处理呈批表,并等待审核/审批，进入后将不能修改当前信息，是否确定进入？',null,null,'信息提示',function(button){
		    	if(button=='1'){
		    		
		    	    Ext.Ajax.request({
						url: contextPath+"/execution/collectivediscuss!markCaseapprovalBpType.action?collectiveDiscussId="+nextConditionId2,
						success: function(request) {
				           var data = Ext.util.JSON.decode(request.responseText);
						   
						   if(data!=""){
						      if(data[0].msg=='success'){
						      	  queryOverViewList('1');
							  }else{
							      ymPrompt.errorInfo('返回案件处理呈批表失败，请重新操作！',null,null,'信息提示',null);
							  }	
						   }
					   } 
				   });
		    	}
		   	},null,null,null,null,[['  是  ','1'],['  否  ','2']]);
		}else{
			if(nextConditionId2=="1"){
				var return_value=window.showModalDialog(contextPath+"/execution/caseapproval!caseApprovalAddForword.action?overViewId="+nextConditionId3+"&collectiveDiscussId="+nextConditionId4+"&isAgainApproval=0","","dialogHeight:768px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
				isShowPrint="0";
			}else{
	  			var return_value=window.showModalDialog(contextPath+"/execution/caseapproval!caseApprovalAddForword.action?collectiveDiscussId="+nextConditionId4,"","dialogHeight:768px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
				isShowPrint="0";
			}
		}
	}else if(bpTypeId=="14"){//行政处罚告知书
		if(nextConditionId1=="1"){//处罚主体为单位时
			if(nextConditionId2=="1"){
	 			//有权听证
	 			var return_value=window.showModalDialog(contextPath+"/execution/priorinformaor!priorinFormAorAddForword.action?isShowTakeStateMentDefend=0&priorinFormId="+nextConditionId4,"","dialogHeight:505px;dialogWidth:749px;status:no;help=no,resizable=no;edge:sunken;");
	 		}else{
	 			if(nextConditionId3=="1"){
			    	//有权听证
			    	var return_value=window.showModalDialog(contextPath+"/execution/priorinformaor!priorinFormAorAddForword.action?isShowTakeStateMentDefend=0&priorinFormId="+nextConditionId4,"","dialogHeight:505px;dialogWidth:749px;status:no;help=no,resizable=no;edge:sunken;");
			 	}else{
			        //无权听证
			        var return_value=window.showModalDialog(contextPath+"/execution/priorinformaor!priorinFormAorAddForword.action?isShowTakeStateMentDefend=1&priorinFormId="+nextConditionId4,"","dialogHeight:505px;dialogWidth:749px;status:no;help=no,resizable=no;edge:sunken;");
			 	}
	 		}
		}else{
			if(nextConditionId2=="1"){
	 			//有权听证
	 			var return_value=window.showModalDialog(contextPath+"/execution/priorinformaor!priorinFormAorAddForword.action?isShowTakeStateMentDefend=0&priorinFormId="+nextConditionId4,"","dialogHeight:505px;dialogWidth:749px;status:no;help=no,resizable=no;edge:sunken;");
	 		}else{
	 			if(nextConditionId3=="1"){
			    	//有权听证
			    	var return_value=window.showModalDialog(contextPath+"/execution/priorinformaor!priorinFormAorAddForword.action?isShowTakeStateMentDefend=0&priorinFormId="+nextConditionId4,"","dialogHeight:505px;dialogWidth:749px;status:no;help=no,resizable=no;edge:sunken;");
			 	}else{
			        //无权听证
			        var return_value=window.showModalDialog(contextPath+"/execution/priorinformaor!priorinFormAorAddForword.action?isShowTakeStateMentDefend=1&priorinFormId="+nextConditionId4,"","dialogHeight:505px;dialogWidth:749px;status:no;help=no,resizable=no;edge:sunken;");
			 	}
	 		}
		}
	}else if(bpTypeId=="15"){//行政处罚告知书送达回证
		if(nextConditionId1=="1"){
	 		if(nextConditionId2=="16"){
	    		ymPrompt.confirmInfo('是否需要进行当事人陈述申辩笔录？',null,null,'信息提示',function(button){
			    	if(button=='0' || button=='1'){
			    		judgeTakeStatementDefend(nextConditionId3,button);
			    	}
			   	},null,null,null,null,[['  需要  ','1'],['  不需要  ','0']]);
	    	}else if(nextConditionId2=="1"){
	 			//进行陈述申辩!
	 			var return_value=window.showModalDialog(contextPath+"/execution/defendoneself!defendOneSelfAddForword.action?overViewId="+nextConditionId3,"","dialogHeight:768px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	 		}else{
	 			//进行处罚
	   	  		var return_value=window.showModalDialog(contextPath+"/execution/decision!decisionAddForword.action?overViewId="+nextConditionId3,"","dialogHeight:768px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	 		}
	 	}else{
	 		//进行听证告知书
	 		var return_value=window.showModalDialog(contextPath+"/execution/howinform!howinFormAddForword.action?overViewId="+nextConditionId3,"","dialogHeight:768px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	 	}
	}else if(bpTypeId=="16"){//陈述笔录流程
		if(nextConditionId1=="1"){
	 		if(nextConditionId2=="47"){
	    		ymPrompt.confirmInfo('您下一步将进入案件处理呈批阶段，进入后将不能修改当前阶段的信息，是否确定进入？',null,null,'信息提示',function(button){
			    	if(button=='1'){
			    		enterNextBp(bpTypeId,nextConditionId2,nextConditionId3);
			    	}
			   	},null,null,null,null,[['  是  ','1'],['  否  ','2']]);
	    	}else if(nextConditionId2=="23"){
	    		ymPrompt.confirmInfo('您下一步将进入处罚阶段，进入后将不能修改当前阶段的信息，是否确定进入？',null,null,'信息提示',function(button){
			    	if(button=='1'){
			    		enterNextBp(bpTypeId,nextConditionId2,nextConditionId3);
			    	}
			   	},null,null,null,null,[['  是  ','1'],['  否  ','2']]);
	    	}
	 	}else{
	 		if(nextConditionId2=="19"){
		   	   //进行听证通知书
		   	   //window.showModelessDialog(contextPath+"/execution/hownotice!howNoticeAddForword.action?overViewId="+overViewId,"","height=580,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
		   	   var return_value=window.showModalDialog(contextPath+"/execution/hownotice!howNoticeAddForword.action?overViewId="+nextConditionId3,"","dialogHeight:580px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
		   	}else if(nextConditionId2=="23"){
		   	   //进行处罚;
		   	   var return_value=window.showModalDialog(contextPath+"/execution/decision!decisionAddForword.action?overViewId="+nextConditionId3,"","dialogHeight:768px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
		   	}else if(nextConditionId2=="47"){
		   		ymPrompt.confirmInfo('是否需要进行行政处罚集体讨论操作！',null,null,'信息提示',function(button){
			    	if(button=='1'){
			    	    //添加行政处罚集体讨论记录转发
			    	    ///window.showModelessDialog(contextPath+"/execution/collectivediscuss!collectiveDiscussAddForword.action?overViewId="+overViewId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
			  			var return_value=window.showModalDialog(contextPath+"/execution/collectivediscuss!collectiveDiscussAddForword.action?overViewId="+nextConditionId3,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
					    if(return_value != null && return_value != ""){
							var jsonObject=eval(return_value);
						  	printObject(jsonObject[0].bpTypeId,jsonObject[0].objectId)
					    	queryOverViewList('1');
					    }
			    	}else if(button=='2'){
					    //添加案件处理呈批转发
					    //window.showModelessDialog(contextPath+"/execution/caseapproval!caseApprovalAddForword.action?overViewId="+overViewId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
					  	var return_value=window.showModalDialog(contextPath+"/execution/caseapproval!caseApprovalAddForword.action?overViewId="+nextConditionId3,"","dialogHeight:768px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
					    if(return_value != null && return_value != ""){
					    	queryOverViewList('1');
					    }
			    	}
			   	},null,null,null,null,[[' 是 ','1'],[' 否 ','2']]);
		   	}
	 	}
	}else if(bpTypeId=="17"){//行政处罚听证告知流程
		var return_value=window.showModalDialog(contextPath+"/execution/howinformaor!howinFormAorAddForword.action?howinFormId="+nextConditionId1,"","dialogHeight:505px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="18"){//行政处罚听证告知书送达流程
	    if(nextConditionId1=="1"){
	   		if(nextConditionId2=="23"){
	    		ymPrompt.confirmInfo('您下一步将进入处罚阶段，进入后将不能修改当前阶段的信息，是否确定进入？',null,null,'信息提示',function(button){
			    	if(button=='1'){
			    		enterNextBp(bpTypeId,nextConditionId2,nextConditionId3);
			    	}
			   	},null,null,null,null,[['  是  ','1'],['  否  ','2']]);
	    	}else if(nextConditionId2=="16"){
	    		ymPrompt.confirmInfo('是否需要进行当事人陈述申辩笔录？',null,null,'信息提示',function(button){
			    	if(button=='0' || button=='1'){
			    		judgeTakeStatementDefend(nextConditionId3,button);
			    	}
			   	},null,null,null,null,[['  需要  ','1'],['  不需要  ','0']]);
	    	}else if(nextConditionId2=="19"){
	    		ymPrompt.confirmInfo('是否需要进行听证？',null,null,'信息提示',function(button){
			    	if(button=='0' || button=='1'){
			    		judgeNeedHow(nextConditionId3,button);
			    	}
			   	},null,null,null,null,[['  需要  ','1'],['  不需要  ','0']]);
	    	}
	   	}else{
	   		if(nextConditionId2=="16"){
	   			var return_value=window.showModalDialog(contextPath+"/execution/defendoneself!defendOneSelfAddForword.action?overViewId="+nextConditionId3,"","dialogHeight:768px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	   		}else if(nextConditionId2=="19"){
	   			//进行听证通知书
		   	    //window.showModelessDialog(contextPath+"/execution/hownotice!howNoticeAddForword.action?overViewId="+overViewId,"","height=580,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
		   	    var return_value=window.showModalDialog(contextPath+"/execution/hownotice!howNoticeAddForword.action?overViewId="+nextConditionId3,"","dialogHeight:580px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	   		}else if(nextConditionId2=="23"){
	   			//进行处罚
		   	   	var return_value=window.showModalDialog(contextPath+"/execution/decision!decisionAddForword.action?overViewId="+nextConditionId3,"","dialogHeight:768px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	   		}
	   	}
	}else if(bpTypeId=="19"){//行政处罚听证通知流程
	    var return_value=window.showModalDialog(contextPath+"/execution/hownoticeaor!howNoticeAorAddForword.action?howNoticeId="+nextConditionId1,"","dialogHeight:485px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="20"){//行政处罚听证通知书送达流程
		var return_value=window.showModalDialog(contextPath+"/execution/howrecord!howRecordAddForword.action?overViewId="+nextConditionId1,"","dialogHeight:768px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="21"){//行政处罚听证笔录流程
		var return_value=window.showModalDialog(contextPath+"/execution/howreport!howReportAddForword.action?howRecordId="+nextConditionId1,"","dialogHeight:768px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="22"){//行政处罚听证会报告流程
	    if(nextConditionId1=="1"){
	    	if(nextConditionId2=="47"){
	    		ymPrompt.confirmInfo('您下一步将进入案件处理呈批阶段，进入后将不能修改当前阶段的信息，是否确定进入？',null,null,'信息提示',function(button){
			    	if(button=='1'){
			    		enterNextBp(bpTypeId,nextConditionId2,nextConditionId3);
			    	}
			   	},null,null,null,null,[['  是  ','1'],['  否  ','2']]);
	    	}else if(nextConditionId2=="23"){
	    		ymPrompt.confirmInfo('您下一步将进入处罚阶段，进入后将不能修改当前阶段的信息，是否确定进入？',null,null,'信息提示',function(button){
			    	if(button=='1'){
			    		enterNextBp(bpTypeId,nextConditionId2,nextConditionId3);
			    	}
			   	},null,null,null,null,[['  是  ','1'],['  否  ','2']]);
	    	}
	    }else{
	    	if(nextConditionId2=="47"){
		   		ymPrompt.confirmInfo('是否需要进行行政处罚集体讨论操作！',null,null,'信息提示',function(button){
			    	if(button=='1'){
			    	    //添加行政处罚集体讨论记录转发
			    	    ///window.showModelessDialog(contextPath+"/execution/collectivediscuss!collectiveDiscussAddForword.action?overViewId="+overViewId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
			  			var return_value=window.showModalDialog(contextPath+"/execution/collectivediscuss!collectiveDiscussAddForword.action?overViewId="+nextConditionId3,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
					    if(return_value != null && return_value != ""){
							var jsonObject=eval(return_value);
						  	printObject(jsonObject[0].bpTypeId,jsonObject[0].objectId)
					    	queryOverViewList('1');
					    }
			    	}else if(button=='2'){
					    //添加案件处理呈批转发
					    //window.showModelessDialog(contextPath+"/execution/caseapproval!caseApprovalAddForword.action?overViewId="+overViewId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
					  	var return_value=window.showModalDialog(contextPath+"/execution/caseapproval!caseApprovalAddForword.action?overViewId="+nextConditionId3,"","dialogHeight:768px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
					    if(return_value != null && return_value != ""){
					    	queryOverViewList('1');
					    }
			    	}
			   	},null,null,null,null,[[' 是 ','1'],[' 否 ','2']]);
		   	}else if(nextConditionId2=="23"){
			   	//进行处罚
			    var return_value=window.showModalDialog(contextPath+"/execution/decision!decisionAddForword.action?overViewId="+nextConditionId3,"","dialogHeight:768px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
		   	}
	    }
	}else if(bpTypeId=="23"){//行政处罚决定流程
	    var return_value=window.showModalDialog(contextPath+"/execution/decisionaor!decisionAorAddForword.action?decisionId="+nextConditionId1,"","dialogHeight:485px;dialogWidth:749px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="24"){//行政处罚决定书送达流程
	    if(nextConditionId1=="1"){
		    ymPrompt.confirmInfo('是否需要进行罚款催缴通知操作?',null,null,'信息提示',function(button){
	  			if(button=='1'){
	  	    		//添加罚款催缴通知书记录表信息
		    		var return_value=window.showModalDialog(contextPath+"/execution/penaltyurge!penaltyUrgeAddForword.action?decisionId="+nextConditionId3,"","dialogHeight:550px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
				    if(return_value != null && return_value != ""){
						var jsonObject=eval(return_value);
					  	printObject(jsonObject[0].bpTypeId,jsonObject[0].objectId)
				    	queryOverViewList('1');
				    }
		   		}else if(button=='2'){
			    	ymPrompt.confirmInfo('是否需要进行延期（分期）缴纳罚款申请操作?',null,null,'信息提示',function(button){
		    			if(button=='1'){
		    	    		//延期（分期）缴纳罚款审批表
						    var return_value=window.showModalDialog(contextPath+"/execution/pnldelay!pnlDelayAddForword.action?overViewId="+nextConditionId2,"","dialogHeight:640px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
						    if(return_value != null && return_value != ""){
						    	queryOverViewList('1');
						    }
			    		}else if(button=='2'){
					    	ymPrompt.confirmInfo('您下一步将进入结案阶段，进入后将不能修改当前阶段的信息，是否确定进入？',null,null,'信息提示',function(button){
						    	if(button=='1'){
						    		enterNextBp(bpTypeId,"27",nextConditionId2);
						    	}
						   	},null,null,null,null,[['  是  ','1'],['  否  ','2']]);
			    		}
			   		},null,null,null,null,[[' 是 ','1'],[' 否 ','2']]);
		   		}
	  		},null,null,null,null,[[' 是 ','1'],[' 否 ','2']]);
	    }else{
	    	ymPrompt.confirmInfo('是否需要进行罚款催缴通知操作?',null,null,'信息提示',function(button){
	  			if(button=='1'){
	  	    		//添加罚款催缴通知书记录表信息
		    		var return_value=window.showModalDialog(contextPath+"/execution/penaltyurge!penaltyUrgeAddForword.action?decisionId="+nextConditionId3,"","dialogHeight:550px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
				    if(return_value != null && return_value != ""){
						var jsonObject=eval(return_value);
					  	printObject(jsonObject[0].bpTypeId,jsonObject[0].objectId)
				    	queryOverViewList('1');
				    }
		   		}else if(button=='2'){
			    	ymPrompt.confirmInfo('是否需要进行延期（分期）缴纳罚款申请操作?',null,null,'信息提示',function(button){
		    			if(button=='1'){
		    	    		//延期（分期）缴纳罚款审批表
						    var return_value=window.showModalDialog(contextPath+"/execution/pnldelay!pnlDelayAddForword.action?overViewId="+nextConditionId2,"","dialogHeight:640px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
						    if(return_value != null && return_value != ""){
						    	queryOverViewList('1');
						    }
			    		}else if(button=='2'){
					    	ymPrompt.confirmInfo('您下一步将进入结案阶段，进入后将不能修改当前阶段的信息，是否确定进入？',null,null,'信息提示',function(button){
						    	if(button=='1'){
						    		enterNextBp(bpTypeId,"27",nextConditionId2);
						    	}
						   	},null,null,null,null,[['  是  ','1'],['  否  ','2']]);
			    		}
			   		},null,null,null,null,[[' 是 ','1'],[' 否 ','2']]);
		   		}
	  		},null,null,null,null,[[' 是 ','1'],[' 否 ','2']]);
	    }
	}else if(bpTypeId=="31"){//整改复查意见书
	    ymPrompt.confirmInfo('是否需要进行罚款催缴通知操作?',null,null,'信息提示',function(button){
  			if(button=='1'){
  	    		//添加罚款催缴通知书记录表信息
	    		var return_value=window.showModalDialog(contextPath+"/execution/penaltyurge!penaltyUrgeAddForword.action?decisionId="+nextConditionId2,"","dialogHeight:550px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
			    if(return_value != null && return_value != ""){
					var jsonObject=eval(return_value);
				  	printObject(jsonObject[0].bpTypeId,jsonObject[0].objectId)
			    	queryOverViewList('1');
			    }
	   		}else if(button=='2'){
		    	ymPrompt.confirmInfo('是否需要进行延期（分期）缴纳罚款申请操作?',null,null,'信息提示',function(button){
	    			if(button=='1'){
	    	    		//延期（分期）缴纳罚款审批表
					    var return_value=window.showModalDialog(contextPath+"/execution/pnldelay!pnlDelayAddForword.action?overViewId="+nextConditionId1,"","dialogHeight:640px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
					    if(return_value != null && return_value != ""){
					    	queryOverViewList('1');
					    }
		    		}else if(button=='2'){
				    	ymPrompt.confirmInfo('您下一步将进入结案阶段，进入后将不能修改当前阶段的信息，是否确定进入？',null,null,'信息提示',function(button){
					    	if(button=='1'){
					    		enterNextBp(bpTypeId,"27",nextConditionId1);
					    	}
					   	},null,null,null,null,[['  是  ','1'],['  否  ','2']]);
		    		}
		   		},null,null,null,null,[[' 是 ','1'],[' 否 ','2']]);
	   		}
  		},null,null,null,null,[[' 是 ','1'],[' 否 ','2']]);
	}else if(bpTypeId=="25"){//罚款催缴通知流程
	    var return_value=window.showModalDialog(contextPath+"/execution/penaltyurgeaor!penaltyUrgeAorAddForword.action?penaltyUrgeId="+nextConditionId1,"","dialogHeight:550px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="26"){//罚款催缴通知书送达流程
	    ymPrompt.confirmInfo('是否需要进行延期（分期）缴纳罚款申请操作?',null,null,'信息提示',function(button){
  			if(button=='1'){
  	    		//延期（分期）缴纳罚款审批表
			    var return_value=window.showModalDialog(contextPath+"/execution/pnldelay!pnlDelayAddForword.action?overViewId="+nextConditionId1,"","dialogHeight:640px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
			    if(return_value != null && return_value != ""){
			    	queryOverViewList('1');
			    }
	   		}else if(button=='2'){
		    	ymPrompt.confirmInfo('是否需要进行强制执行申请操作?',null,null,'信息提示',function(button){
	    			if(button=='1'){
	    	    		if(nextConditionId2=="1"){
					   	    //强制执行申请书
						    var return_value=window.showModalDialog(contextPath+"/execution/comexcecution!comExcecutionAddForword.action?overViewId="+nextConditionId1+"&userId="+nextConditionId3+"&isMarker="+nextConditionId4,"","dialogHeight:590px;dialogWidth:749px;status:no;help=no,resizable=no;edge:sunken;");
						    if(return_value != null && return_value != ""){
								var jsonObject=eval(return_value);
							  	printObject(jsonObject[0].bpTypeId,jsonObject[0].objectId)
						    	queryOverViewList('1');
						    }
					     }else{
					   	    ymPrompt.confirmInfo('是否移交区局进行强制执行申请操作！',null,null,'信息提示',function(button){
						    	if(button=='1'){
						    	    
						    	    Ext.Ajax.request({
										url: contextPath+"/execution/comexcecution!comExcecutionMarker.action?overViewId="+nextConditionId1,
										success: function(request) {
								           var data = Ext.util.JSON.decode(request.responseText);
										   
										   if(data!=""){
										      if(data[0].msg=='success'){
										      	   ymPrompt.succeedInfo('移交申请提交成功，请耐心等待区局执行结果！',null,null,'信息提示',function(button){if(button=='ok' || button=='close')queryOverViewList('1');});
											  }else{
											       ymPrompt.errorInfo('移交申请失败，请重新移交申请！',null,null,'信息提示',null);
											  }	
										   }
									   } 
								   });
						    	}
						   	 },null,null,null,null,[[' 是 ','1'],[' 否 ','2']]);
						 }
		    		}else if(button=='2'){
				    	ymPrompt.confirmInfo('您下一步将进入结案阶段，进入后将不能修改当前阶段的信息，是否确定进入？',null,null,'信息提示',function(button){
					    	if(button=='1'){
					    		enterNextBp(bpTypeId,"27",nextConditionId1);
					    	}
					   	},null,null,null,null,[['  是  ','1'],['  否  ','2']]);
		    		}
		   		},null,null,null,null,[[' 是 ','1'],[' 否 ','2']]);
	   		}
  		},null,null,null,null,[[' 是 ','1'],[' 否 ','2']]);
	}else if(bpTypeId=="42"){//延期（分期）缴纳罚款审批表
	    var return_value=window.showModalDialog(contextPath+"/execution/pnldelayapproval!pnlDelayApprovalAddForword.action?pnlDelayId="+nextConditionId1,"","dialogHeight:415px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="43"){//延期（分期）缴纳罚款批准书
	    if(nextConditionId1=="1"){
	   		ymPrompt.confirmInfo('您下一步将进入结案阶段，进入后将不能修改当前阶段的信息，是否确定进入？',null,null,'信息提示',function(button){
		    	if(button=='1'){
		    		enterNextBp(bpTypeId,"27",nextConditionId3);
		    	}
		   	},null,null,null,null,[['  是  ','1'],['  否  ','2']]);
	   	}else{
		   	if(nextConditionId2=="43"){
		   		var return_value=window.showModalDialog(contextPath+"/execution/pnldelayapproval!pnlDelayApprovalAddForword.action?isFirst=0&pnlDelayId="+nextConditionId3,"","dialogHeight:415px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
		   	}else if(nextConditionId2=="27"){
		   		
		   	}
	   	}
	}else if(bpTypeId=="48"){//强制执行申请书
		if(nextConditionId1=="1"){
			if(nextConditionId2=="48"){
				ymPrompt.confirmInfo('您下一步将提示大队或街镇强制执行申请已完成，可继续进行下一环节操作，点击"是"后将不能修改当前信息，是否确定进行下一步？',350,160,'信息提示',function(button){
			    	if(button=='1'){
			    		
			    	    Ext.Ajax.request({
							url: contextPath+"/execution/comexcecution!comExcecutionConfirm.action?overViewId="+nextConditionId3,
							success: function(request) {
					           var data = Ext.util.JSON.decode(request.responseText);
							   
							   if(data!=""){
							      if(data[0].msg=='success'){
							      	   queryOverViewList('1');
								  }else{
								       ymPrompt.errorInfo('进行下一步操作失败，请重新操作！',null,null,'信息提示',null);
								  }	
							   }
						   } 
					   });
			    	}
			   	},null,null,null,null,[['  是  ','1'],['  否  ','2']]);
			}else{
				ymPrompt.confirmInfo('您下一步将进入结案阶段，进入后将不能修改当前阶段的信息，是否确定进入？',null,null,'信息提示',function(button){
			    	if(button=='1'){
			    		enterNextBp(bpTypeId,"27",nextConditionId3);
			    	}
			   	},null,null,null,null,[['  是  ','1'],['  否  ','2']]);
			}
		}else if(nextConditionId1=="2"){

		}else{
		
		}
	}else if(bpTypeId=="27"){//结案处理报批表
		if(nextConditionId1=="1"){
	    	if(nextConditionId2=="53"){
	    		ymPrompt.confirmInfo('您下一步将进入归档阶段，进入后将不能修改当前阶段的信息，是否确定进入？',null,null,'信息提示',function(button){
			    	if(button=='1'){
			    		enterNextBp("27_next","",nextConditionId3);
			    	}
			   	},null,null,null,null,[['  是  ','1'],['  否  ','2']]);
	    	}
	    }else{
	    	if(nextConditionId2=="54"){//下一步添加安全生产违法案件案卷（首页）
		   		var return_value=window.showModalDialog(contextPath+"/execution/illegalvolume!illegalVolumeAddForword.action?pnlPorId="+nextConditionId3,"","dialogHeight:590px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
				isShowPrint="0";
		   	}
	    }
	}else if(bpTypeId=="51"){//案件移送审批表
		var return_value=window.showModalDialog(contextPath+"/execution/portransferrecord!porTransferRecordAddForword.action?porTransferId="+nextConditionId1,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="52"){//案件移送书，下一步添加安全生产违法案件案卷（首页）
		var return_value=window.showModalDialog(contextPath+"/execution/illegalvolume!illegalVolumeAddForword.action?pnlPorId="+nextConditionId1,"","dialogHeight:590px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
	}else if(bpTypeId=="54"){//安全生产违法案件案卷（首页），下一步添加卷内目录
		//window.showModelessDialog(contextPath+"/execution/volumecatalog!volumeCatalogAddForword.action?pnlPorId="+nextConditionId1);
		var return_value=window.showModalDialog(contextPath+"/execution/volumecatalog!volumeCatalogAddForword.action?pnlPorId="+nextConditionId1,"","dialogHeight:600px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	}
	if(return_value != null && return_value != "" && isShowPrint!="0"){
		var jsonObject=eval(return_value);
	  	printObject(jsonObject[0].bpTypeId,jsonObject[0].objectId)
    	queryOverViewList('1');
    }else{
    	queryOverViewList('1');
    }
}

//点击进入下一阶段
function enterNextBp(bpTypeId,nextBpTypeId,objectId){
	Ext.Ajax.request({
		url: contextPath+"/execution/overview!overViewEnterNextBp.action?bpTypeId="+bpTypeId+"&nextBpTypeId="+nextBpTypeId+"&objectId="+objectId,
		success: function(request) {
           var data = Ext.util.JSON.decode(request.responseText);
		   if(data!=""){
		      if(data[0].msg=='success'){
		      	  
				  queryOverViewList('1');
			   }else{
			      
			      ymPrompt.errorInfo('进入下一阶段失败，请重新进行操作！',null,null,'信息提示',null);
			   }
		   }
	   } 
   });
}

//判断下一步要进行的操作
function judgeNextBp(porId,overViewId){
	Ext.Ajax.request({
		url: contextPath+"/execution/overview!judgeNextBp.action?porId="+porId+"&overViewId="+overViewId,
		success: function(request) {
           var data = Ext.util.JSON.decode(request.responseText);
		   if(data!=""){
	      	  
			  if(data[0].isEnableNextButton=="0"){
			  	  nextObject(data[0].bpTypeId,data[0].nextConditionId1,data[0].nextConditionId2,data[0].nextConditionId3,data[0].nextConditionId4,data[0].nextConditionId5);
			  }
		   }else{
		      
		      ymPrompt.errorInfo('自动进入下一阶段失败，请手动进行操作！',null,null,'信息提示',null);
		   }
	   } 
   });
}

//标记是否需要陈述申辩情况
function judgeTakeStatementDefend(overViewId,isTakeStatementDefend){
	Ext.Ajax.request({
		url: contextPath+"/execution/overview!judgeTakeStatementDefend.action?overViewId="+overViewId+"&isTakeStatementDefend="+isTakeStatementDefend,
		success: function(request) {
           var data = Ext.util.JSON.decode(request.responseText);
		   if(data!=""){
		      if(data[0].msg=='success'){
		      	  
				  queryOverViewList('1');
			   }else{
			      
			      ymPrompt.errorInfo('判断是否需要陈述申辩情况失败，请重新进行操作！',null,null,'信息提示',null);
			   }
		   }
	   } 
   });
}

//标记是否需要听证情况
function judgeNeedHow(overViewId,isNeedHow){
	Ext.Ajax.request({
		url: contextPath+"/execution/overview!judgeNeedHow.action?overViewId="+overViewId+"&isNeedHow="+isNeedHow,
		success: function(request) {
           var data = Ext.util.JSON.decode(request.responseText);
		   if(data!=""){
		      if(data[0].msg=='success'){
		      	  
				  queryOverViewList('1');
			   }else{
			      
			      ymPrompt.errorInfo('判断是否需要听证情况失败，请重新进行操作！',null,null,'信息提示',null);
			   }
		   }
	   } 
   });
}

//标记事故查处归档
function accidentMarkAchives(accidentdetailsId){
	
	Ext.Ajax.request({
		url: contextPath+"/accident/accident!accidentMarkAchives.action?objectId="+accidentdetailsId,
		success: function(request) {
           var data = Ext.util.JSON.decode(request.responseText);
		   if(data!=""){
		      if(data[0].msg=='success'){
		      	  
				  queryInpectionPandectForPorList("1");
			   }else{
			      
			      ymPrompt.errorInfo('归档事故查处信息失败，请重新进行操作！',null,null,'信息提示',null);
			   }
		   }
	   } 
   });
}

//动态显示查询条件
function displayQueryCondition(id,num){
	if(num=="1"){
		document.getElementById(id+"_1").style.display="none";
		document.getElementById(id+"_2").style.display="";
	}else{
		document.getElementById(id+"_1").style.display="";
		document.getElementById(id+"_2").style.display="none";
	}
}

/**************************************************行政处罚总览*************************************************************************/
//查询行政处罚总览列表信息
function queryOverViewList(pageNum){
   	document.getElementById("pageNum").value=pageNum;
    var superviseViewTypeId=document.getElementById("superviseViewTypeId").value;
    var insUnit=document.getElementById("insUnit").value;
    var porStartDate1=document.getElementById("porStartDate1").value;
    var porStartDate2=document.getElementById("porStartDate2").value;
    var reportStarDate1 = "";
    if(document.getElementById("reportStarDate1")){
    	reportStarDate1=document.getElementById("reportStarDate1").value;
    }
    var reportStarDate2 = "";
    if(document.getElementById("reportStarDate2")){
    	reportStarDate2=document.getElementById("reportStarDate2").value;
    }
    var phaseId=document.getElementById("phaseId").value;
    var isQueryDepartmentOtherReportUserRecord="0";
    if(document.getElementById("isQueryDepartmentOtherReportUserRecord_1")!=null && document.getElementById("isQueryDepartmentOtherReportUserRecord_1").checked){
    	isQueryDepartmentOtherReportUserRecord="1";
    }else if(document.getElementById("isQueryDepartmentOtherReportUserRecord_2")!=null && document.getElementById("isQueryDepartmentOtherReportUserRecord_2").checked){
    	isQueryDepartmentOtherReportUserRecord="2";
    }
    document.getElementById("pageNum").value=pageNum;
    var isArchived="0";
    
   	Ext.Ajax.request({
		url: contextPath+"/execution/overview!overViewList.action?pageNum="+pageNum+"&superviseViewTypeId="+superviseViewTypeId+"&insUnit="+encodeURIComponent(insUnit,'UTF-8') +"&porStartDate1="+porStartDate1+"&porStartDate2="+porStartDate2+"&reportStarDate1="+reportStarDate1+"&reportStarDate2="+reportStarDate2+"&phaseId="+phaseId+"&isArchived="+isArchived+"&isQueryDepartmentOtherReportUserRecord="+isQueryDepartmentOtherReportUserRecord,
		success: function(request){
		   Ext.getDom("queryOverViewList").innerHTML=request.responseText;
		   
		}
	});
}

//查看监督检查流程图
function queryInspectionFlowSheet(inpectionId){
 	//window.showModelessDialog(contextPath+"/execution/inpection!inspectionFlowSheet.action?inpectionId="+inpectionId,"","dialogHeight:768px;dialogWidth:1300px;status:no;help=no,resizable=no;edge:sunken;");
 	window.showModalDialog(contextPath+"/execution/inpection!inspectionFlowSheet.action?inpectionId="+inpectionId,"","dialogHeight:768px;dialogWidth:1300px;status:no;help=no,resizable=no;edge:sunken;");
}

//查看行政处罚流程图信息
function queryFlowSheet(overViewId){
  	window.showModelessDialog(contextPath+"/execution/overview!flowSheetNew.action?overViewId="+overViewId,"","dialogHeight:768px;dialogWidth:1300px;status:no;help=no,resizable=no;edge:sunken;");
}

//查看单位信息
function queryUnitInfo(operatePointId){
  	window.showModalDialog(contextPath+"/qualification/jurisdictionunit!jurisdictionUnitAchivesForword.action?operatePointId="+operatePointId,"","dialogHeight:768px;dialogWidth:1300px;status:no;help=no,resizable=no;edge:sunken;");
}

/***************************************************结案延期审批表*******************************************************************/
//添加结案延期审批表信息
function finalDelayAddForword(pnlPorId){
    //window.showModelessDialog(contextPath+"/execution/finaldelay!finalDelayAddForword.action?pnlPorId="+pnlPorId,"","height=500,width=753,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/finaldelay!finalDelayAddForword.action?pnlPorId="+pnlPorId,"","dialogHeight:600px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	queryOverViewList('1');
    }
}

//查看结案延期审批表列表信息
function queryFinalDelayList(pageNum){
  	var superviseViewTypeId=document.getElementById("superviseViewTypeId").value;
    var insUnit=document.getElementById("insUnit").value.trim();
    document.getElementById("pageNum").value=pageNum;
    var isArchived="0";
    
  	Ext.Ajax.request({
		url: contextPath+"/execution/finaldelay!finalDelayList.action?pageNum="+pageNum+"&superviseViewTypeId="+superviseViewTypeId+"&insUnit="+encodeURIComponent(insUnit,'UTF-8')+"&isArchived="+isArchived,
		success: function(request){
		   Ext.getDom("queryFinalDelayList").innerHTML=request.responseText;
		   
		}
	});
}
  	
//查看结案延期审批表信息
function queryFinalDelay(finalDelayId){
  	window.showModalDialog(contextPath+"/execution/finaldelay!finalDelayVerifyQueryForword.action?flag=view&finalDelayId="+finalDelayId,"","dialogHeight:730px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
}

//打印结案延期审批表信息
function printFinalDelay(finalDelayId){
  	document.getElementById("overViewIframe").src=contextPath+"/execution/finaldelay!finalDelayVerifyQueryForword.action?flag=print&finalDelayId="+finalDelayId;
}

//结案延期审批表修改转发
function finalDelayUpdateForword(finalDelayId){
  	///window.showModelessDialog(contextPath+"/execution/caseapproval!caseApprovalQueryForword.action?flag=update&caseApprovalId="+caseApprovalId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/finaldelay!finalDelayQueryForword.action?flag=update&finalDelayId="+finalDelayId,"","dialogHeight:318px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	var pageNum=document.getElementById("pageNum").value;
    	queryFinalDelayList(pageNum);
    }
}
  	
//删除结案延期审批表
function deleteFinalDelay(finalDelayId){
  	
    Ext.Ajax.request({
		url: contextPath+"/execution/finaldelay!finalDelayDelete.action?finalDelayId="+finalDelayId,
		success: function(request) {
           var data = Ext.util.JSON.decode(request.responseText);
		   if(data!=""){
		      if(data[0].msg=='success'){
		      	  
			      ymPrompt.succeedInfo('结案延期审批表信息删除成功！',null,null,'信息提示',function(button){if(button=='ok' || button=='close')queryFinalDelayList('1');});
			   }else{
			      
			      ymPrompt.errorInfo('结案延期审批表信息删除失败，请重新删除！',null,null,'信息提示',null);
			   }
		   }
	   } 
   });
}

/***************************************************案件移送审批表*******************************************************************/
//添加案件移送审批表信息
function porTransferAddForword(flag,pnlPorId){
    //window.showModelessDialog(contextPath+"/execution/portransfer!porTransferAddForword.action?pnlPorId="+pnlPorId,"","height=500,width=753,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/portransfer!porTransferAddForword.action?pnlPorId="+pnlPorId,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	if(flag=="1"){//调查取证
    		queryInvestigateList('1');
    	}else if(flag=="3"){//鉴定委托书
            queryAuthorizationList('1');
    	}else if(flag=="4"){//勘验笔录
            queryInquesttranscriptsList('1');
    	}else if(flag=="5"){//抽样取证凭证
            querySamplingforensicsList('1');
    	}
    }
}

//查看案件移送审批表列表信息
function queryPorTransferList(pageNum){
  	var superviseViewTypeId=document.getElementById("superviseViewTypeId").value;
    var insUnit=document.getElementById("insUnit").value.trim();
    var porDate1=document.getElementById("porDate1").value;
	var porDate2=document.getElementById("porDate2").value;
    document.getElementById("pageNum").value=pageNum;
    var isArchived="0";
    
  	Ext.Ajax.request({
		url: contextPath+"/execution/portransfer!porTransferList.action?pageNum="+pageNum+"&superviseViewTypeId="+superviseViewTypeId+"&insUnit="+encodeURIComponent(insUnit,'UTF-8')+"&porDate1="+porDate1+"&porDate2="+porDate2+"&isArchived="+isArchived,
		success: function(request){
		   Ext.getDom("queryPorTransferList").innerHTML=request.responseText;
		   
		}
	});
}
  	
//查看案件移送审批表信息
function queryPorTransfer(porTransferId){
  	window.showModalDialog(contextPath+"/execution/portransfer!porTransferVerifyQueryForword.action?flag=view&porTransferId="+porTransferId,"","dialogHeight:700px;dialogWidth:770px;status:no;help=no,resizable=no;edge:sunken;");
}

//打印案件移送审批表信息
function printPorTransfer(porTransferId){
  	document.getElementById("overViewIframe").src=contextPath+"/execution/portransfer!porTransferVerifyQueryForword.action?flag=print&porTransferId="+porTransferId;
}

//案件移送审批表修改转发
function porTransferUpdateForword(porTransferId){
  	///window.showModelessDialog(contextPath+"/execution/caseapproval!caseApprovalQueryForword.action?flag=update&caseApprovalId="+caseApprovalId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/portransfer!porTransferQueryForword.action?flag=update&porTransferId="+porTransferId,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	var pageNum=document.getElementById("pageNum").value;
    	queryPorTransferList(pageNum);
    }
}
  	
//删除案件移送审批表
function deletePorTransfer(porTransferId){
  	
    Ext.Ajax.request({
		url: contextPath+"/execution/portransfer!porTransferDelete.action?porTransferId="+porTransferId,
		success: function(request) {
           var data = Ext.util.JSON.decode(request.responseText);
		   if(data!=""){
		      if(data[0].msg=='success'){
		      	  
			      ymPrompt.succeedInfo('案件移送审批表信息删除成功！',null,null,'信息提示',function(button){if(button=='ok' || button=='close')queryPorTransferList('1');});
			   }else{
			      
			      ymPrompt.errorInfo('案件移送审批表信息删除失败，请重新删除！',null,null,'信息提示',null);
			   }
		   }
	   } 
   });
}

/***************************************************案件移送书*******************************************************************/
//添加案件移送书信息
function porTransferRecordAddForword(porTransferId){
    //window.showModelessDialog(contextPath+"/execution/portransferrecord!porTransferRecordAddForword.action?porTransferId="+porTransferId,"","height=500,width=753,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/portransferrecord!porTransferRecordAddForword.action?porTransferId="+porTransferId,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	queryPorTransferList('1');
    }
}

//查看案件移送书列表信息
function queryPorTransferRecordList(pageNum){
  	var superviseViewTypeId=document.getElementById("superviseViewTypeId").value;
    var parties=document.getElementById("parties").value.trim();
    document.getElementById("pageNum").value=pageNum;
    var isArchived="0";
    
  	Ext.Ajax.request({
		url: contextPath+"/execution/portransferrecord!porTransferRecordList.action?pageNum="+pageNum+"&superviseViewTypeId="+superviseViewTypeId+"&parties="+encodeURIComponent(parties,'UTF-8')+"&isArchived="+isArchived,
		success: function(request){
		   Ext.getDom("queryPorTransferRecordList").innerHTML=request.responseText;
		   
		}
	});
}
  	
//查看案件移送书信息
function queryPorTransferRecord(porTransferRecordId){
  	window.showModalDialog(contextPath+"/execution/portransferrecord!porTransferRecordQueryForword.action?flag=view&porTransferRecordId="+porTransferRecordId,"","dialogHeight:700px;dialogWidth:770px;status:no;help=no,resizable=no;edge:sunken;");
}

//打印案件移送书信息
function printPorTransferRecord(porTransferRecordId){
  	document.getElementById("overViewIframe").src=contextPath+"/execution/portransferrecord!porTransferRecordQueryForword.action?flag=print&porTransferRecordId="+porTransferRecordId;
}

//案件案件移送书修改转发
function porTransferRecordUpdateForword(porTransferRecordId){
  	///window.showModelessDialog(contextPath+"/execution/caseapproval!caseApprovalQueryForword.action?flag=update&caseApprovalId="+caseApprovalId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/portransferrecord!porTransferRecordQueryForword.action?flag=update&porTransferRecordId="+porTransferRecordId,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	var pageNum=document.getElementById("pageNum").value;
    	queryPorTransferRecordList(pageNum);
    }
}
  	
//删除案件移送书
function deletePorTransferRecord(porTransferRecordId){
  	
    Ext.Ajax.request({
		url: contextPath+"/execution/portransferrecord!porTransferRecordDelete.action?porTransferRecordId="+porTransferRecordId,
		success: function(request) {
           var data = Ext.util.JSON.decode(request.responseText);
		   if(data!=""){
		      if(data[0].msg=='success'){
		      	  
			      ymPrompt.succeedInfo('案件移送书信息删除成功！',null,null,'信息提示',function(button){if(button=='ok' || button=='close')queryPorTransferRecordList('1');});
			   }else{
			      
			      ymPrompt.errorInfo('案件移送书信息删除失败，请重新删除！',null,null,'信息提示',null);
			   }
		   }
	   } 
   });
}

/***************************************************立案审批表*******************************************************************/
//添加立案审批表信息
function pnlPorAddForword(){
  	///window.showModelessDialog(contextPath+"/execution/pnlpor!pnlPorAddForword.action","","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/pnlpor!pnlPorAddForword.action","","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	queryPnlPorList('1');
    }
    if(return_value != null && return_value != ""){
    	var jsonObject=eval(return_value);
	  	printObject(jsonObject[0].bpTypeId,jsonObject[0].objectId)
    	queryInpectionPandectList("1");
    }
} 

//查询立案审批表列表信息
function queryPnlPorList(pageNum){
	 var superviseViewTypeId=document.getElementById("superviseViewTypeId").value;
	 var insUnit=document.getElementById("insUnit").value.trim();
	 var porDate1=document.getElementById("porDate1").value;
	 var porDate2=document.getElementById("porDate2").value;
	 document.getElementById("pageNum").value=pageNum;
     var isArchived="0";
     
   	 Ext.Ajax.request({
		url: contextPath+"/execution/pnlpor!pnlPorList.action?pageNum="+pageNum+"&superviseViewTypeId="+superviseViewTypeId+"&insUnit="+encodeURIComponent(insUnit,'UTF-8')+"&porDate1="+porDate1+"&porDate2="+porDate2+"&isArchived="+isArchived,
		success: function(request){
		   Ext.getDom("queryPnlPorList").innerHTML=request.responseText;
		   
		}
	});
}
   	
//查看立案审批表信息
function queryPnlPor(pnlPorId){
  	window.showModelessDialog(contextPath+"/execution/pnlpor!pnlPorVerifyQueryForword.action?flag=view&pnlPorId="+pnlPorId,"","dialogHeight:700px;dialogWidth:770px;status:no;help=no,resizable=no;edge:sunken;");
}

//打印立案审批表
function printPnlPor(pnlPorId){
   	document.getElementById("overViewIframe").src=contextPath+"/execution/pnlpor!pnlPorVerifyQueryForword.action?flag=print&pnlPorId="+pnlPorId;
}
   
//立案审批表修改转发
function pnlPorUpdateForword(pnlPorId){
   	///window.showModelessDialog(contextPath+"/execution/pnlpor!pnlPorQueryForword.action?flag=update&pnlPorId="+pnlPorId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
   	var return_value=window.showModalDialog(contextPath+"/execution/pnlpor!pnlPorQueryForword.action?flag=update&pnlPorId="+pnlPorId,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	if(return_value != null && return_value != "" && return_value == "true"){
	    var pageNum=document.getElementById("pageNum").value;
	    queryPnlPorList(pageNum);
	}
}
   	
//删除立案审批表
function deletePnlPor(pnlPorId){
   	
    Ext.Ajax.request({
		url: contextPath+"/execution/pnlpor!pnlPorDelete.action?pnlPorId="+pnlPorId,
		success: function(request) {
	        var data = Ext.util.JSON.decode(request.responseText);
			if(data!=""){
			    if(data[0].msg=='success'){
			      	
				    ymPrompt.succeedInfo('立案审批表信息删除成功！',null,null,'信息提示',function(button){if(button=='ok' || button=='close')queryPnlPorList('1');});
				}else{
				    
				    ymPrompt.errorInfo('立案审批表信息删除失败，请重新删除！',null,null,'信息提示',null);
				}
			 }
		 } 
	 });
}

/***************************************************调查取证（询问笔录）*******************************************************************/
//添加调查取证表信息
function investigateAddForword(flag,objectId){
  	if(flag=="1"){
  		//window.showModelessDialog(contextPath+"/execution/investigate!investigateAddForword.action?pnlPorId="+objectId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  		var return_value=window.showModalDialog(contextPath+"/execution/investigate!investigateAddForword.action?pnlPorId="+objectId,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	    if(return_value != null && return_value != "" && return_value == "true"){
	    	queryPnlPorList('1');
	    }
  	}else{
  		var return_value=window.showModalDialog(contextPath+"/execution/investigate!investigateAddForword.action?overViewId="+objectId,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	    if(return_value != null && return_value != "" && return_value == "true"){
	    	queryInvestigateList('1');
	    }
  	}
}

//查看调查取证笔录列表信息
function queryInvestigateList(pageNum){
    var investigatedPerson=document.getElementById("investigatedPerson").value.trim();
    var insStartDate1=document.getElementById("insStartDate1").value;
    var insStartDate2=document.getElementById("insStartDate2").value;
    var insStopDate1=document.getElementById("insStopDate1").value;
    var insStopDate2=document.getElementById("insStopDate2").value;
    document.getElementById("pageNum").value=pageNum;
    var isArchived="0";
    
  	Ext.Ajax.request({
		url: contextPath+"/execution/investigate!investigateList.action?pageNum="+pageNum+"&superviseViewTypeId="+superviseViewTypeId+"&investigatedPerson="+encodeURIComponent(investigatedPerson,'UTF-8') +"&insStartDate1="+insStartDate1+"&insStartDate2="+insStartDate2+"&insStopDate1="+insStopDate1+"&insStopDate2="+insStopDate2+"&isArchived="+isArchived,
		success: function(request){
		   Ext.getDom("queryInvestigateList").innerHTML=request.responseText;
		   
		}
	});
}
    	
//查看调查取证笔录信息
function queryInvestigate(investigateId){
   	window.showModelessDialog(contextPath+"/execution/investigate!investigateQueryForword.action?flag=view&investigateId="+investigateId,"","dialogHeight:700px;dialogWidth:770px;status:no;help=no,resizable=no;edge:sunken;");
   	///window.showModelessDialog("${pageContext.request.contextPath}/execution/investigate!investigateQueryForword.action?flag=view&investigateId="+investigateId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
}

//打印调查取证笔录信息
function printInvestigate(investigateId){
   document.getElementById("overViewIframe").src=contextPath+"/execution/investigate!investigateQueryForword.action?flag=print&investigateId="+investigateId;
}

//调查取证笔录修改转发
function investigateUpdateForword(investigateId){
  	///window.showModelessDialog("${pageContext.request.contextPath}/execution/investigate!investigateQueryForword.action?flag=update&investigateId="+investigateId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/investigate!investigateQueryForword.action?flag=update&investigateId="+investigateId,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	var pageNum=document.getElementById("pageNum").value;
    	queryInvestigateList(pageNum);
    }
}
    	
//删除调查取证笔录
function deleteInvestigate(investigateId){
   	
    Ext.Ajax.request({
		url: contextPath+"/execution/investigate!investigateDelete.action?investigateId="+investigateId,
		success: function(request) {
           var data = Ext.util.JSON.decode(request.responseText);
		   if(data!=""){
		      if(data[0].msg=='success'){
		      	  
			      ymPrompt.succeedInfo('调查取证笔录信息删除成功！',null,null,'信息提示',function(button){if(button=='ok' || button=='close')queryInvestigateList('1');});
			   }else{
			      
			      ymPrompt.errorInfo('调查取证笔录信息删除失败，请重新删除！',null,null,'信息提示',null);
			   }
		   }
	    } 
	});
}

//是否禁用下一步操作（表示判断是不是所有的必须要调查取证的，但没有进行调查取证）
function checkIsEnableNextBp(flag,pnlPorId){
    Ext.Ajax.request({
		url: contextPath+"/execution/investigate!checkIsEnableNextBp.action?pnlPorId="+pnlPorId,
		success: function(request) {
           var data = Ext.util.JSON.decode(request.responseText);
		   if(data!=""){
		      if(data[0].msg=='success'){
			      ymPrompt.errorInfo('当前还存在当事人需要进行调查取证操作，请确认后在进行操作！',null,null,'信息提示',null);
			   }else{
				  caseApprovalAddForword(flag,pnlPorId);
			   }
		   }
	    } 
	});
}
 	
/***************************************************案件处理报批表*******************************************************************/
//添加案件处理报批表信息
function caseApprovalAddForword(flag,pnlPorId){
  	ymPrompt.confirmInfo('是否需要进行行政处罚集体讨论操作！',null,null,'信息提示',function(button){
    	if(button=='1'){
    	    //添加行政处罚集体讨论记录转发
    	    ///window.showModelessDialog(contextPath+"/execution/collectivediscuss!collectiveDiscussAddForword.action?pnlPorId="+pnlPorId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  			var return_value=window.showModalDialog(contextPath+"/execution/collectivediscuss!collectiveDiscussAddForword.action?pnlPorId="+pnlPorId,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
		    if(return_value != null && return_value != "" && return_value == "true"){
		    	if(flag=="1"){//立案
		    		queryPnlPorList('1');
		    	}else if(flag=="2"){//调查取证
		    		queryInvestigateList('1');
		    	}else if(flag=="3"){//鉴定委托书
                    queryAuthorizationList('1');
		    	}else if(flag=="4"){//勘验笔录
                    queryInquesttranscriptsList('1');
		    	}else if(flag=="5"){//抽样取证凭证
                    querySamplingforensicsList('1');
		    	}
		    }
    	}else if(button=='2'){
		    //添加案件处理呈批转发
		    //window.showModelessDialog(contextPath+"/execution/caseapproval!caseApprovalAddForword.action?pnlPorId="+pnlPorId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
		  	var return_value=window.showModalDialog(contextPath+"/execution/caseapproval!caseApprovalAddForword.action?pnlPorId="+pnlPorId,"","dialogHeight:768px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
		    if(return_value != null && return_value != "" && return_value == "true"){
		    	if(flag=="1"){//立案
		    		queryPnlPorList('1');
		    	}else if(flag=="2"){//调查取证
		    		queryInvestigateList('1');
		    	}else if(flag=="3"){//鉴定委托书
                    queryAuthorizationList('1');
		    	}else if(flag=="4"){//勘验笔录
                    queryInquesttranscriptsList('1');
		    	}else if(flag=="5"){//抽样取证凭证
                    querySamplingforensicsList('1');
		    	}
		    }
    	}
   	},null,null,null,null,[[' 是 ','1'],[' 否 ','2']]);
}

//添加案件处理报批表信息(从行政处罚集体讨论记录环节添加)
function caseApprovalAddForwordByCollectiveDiscuss(flag,overViewId,collectiveDiscussId){
    //window.showModelessDialog(contextPath+"/execution/caseapproval!caseApprovalAddForword.action?pnlPorId="+pnlPorId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	if(flag=="1"){
  		var return_value=window.showModalDialog(contextPath+"/execution/caseapproval!caseApprovalAddForword.action?overViewId="+overViewId+"&collectiveDiscussId="+collectiveDiscussId+"&isAgainApproval=0","","dialogHeight:768px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
  	}else{
  		var return_value=window.showModalDialog(contextPath+"/execution/caseapproval!caseApprovalAddForword.action?collectiveDiscussId="+collectiveDiscussId,"","dialogHeight:768px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
  	}
    if(return_value != null && return_value != "" && return_value == "true"){
    	queryCollectiveDiscussList('1');
    }
}

//添加案件处理报批表信息(从当事人陈述申辩笔录环节添加)
function caseApprovalAddForwordByDefendoneself(overViewId){
    ymPrompt.confirmInfo('是否需要进行行政处罚集体讨论操作！',null,null,'信息提示',function(button){
    	if(button=='1'){
    	    //添加行政处罚集体讨论记录转发
    	    ///window.showModelessDialog(contextPath+"/execution/collectivediscuss!collectiveDiscussAddForword.action?overViewId="+overViewId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  			var return_value=window.showModalDialog(contextPath+"/execution/collectivediscuss!collectiveDiscussAddForword.action?overViewId="+overViewId,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
		    if(return_value != null && return_value != "" && return_value == "true"){
		    	queryDefendOneSelfList('1');
		    }
    	}else if(button=='2'){
		    //添加案件处理呈批转发
		    //window.showModelessDialog(contextPath+"/execution/caseapproval!caseApprovalAddForword.action?overViewId="+overViewId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
		  	var return_value=window.showModalDialog(contextPath+"/execution/caseapproval!caseApprovalAddForword.action?overViewId="+overViewId,"","dialogHeight:768px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
		    if(return_value != null && return_value != "" && return_value == "true"){
		    	queryDefendOneSelfList('1');
		    }
    	}
   	},null,null,null,null,[[' 是 ','1'],[' 否 ','2']]);
}

//添加案件处理报批表信息(从听证会报告书环节添加)
function caseApprovalAddForwordByHowReport(overViewId){
    ymPrompt.confirmInfo('是否需要进行行政处罚集体讨论操作！',null,null,'信息提示',function(button){
    	if(button=='1'){
    	    //添加行政处罚集体讨论记录转发
    	    ///window.showModelessDialog(contextPath+"/execution/collectivediscuss!collectiveDiscussAddForword.action?overViewId="+overViewId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  			var return_value=window.showModalDialog(contextPath+"/execution/collectivediscuss!collectiveDiscussAddForword.action?overViewId="+overViewId,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
		    if(return_value != null && return_value != "" && return_value == "true"){
		    	queryHowReportList('1');
		    }
    	}else if(button=='2'){
		    //添加案件处理呈批转发
		    //window.showModelessDialog(contextPath+"/execution/caseapproval!caseApprovalAddForword.action?overViewId="+overViewId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
		  	var return_value=window.showModalDialog(contextPath+"/execution/caseapproval!caseApprovalAddForword.action?overViewId="+overViewId,"","dialogHeight:768px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
		    if(return_value != null && return_value != "" && return_value == "true"){
		    	queryHowReportList('1');
		    }
    	}
   	},null,null,null,null,[[' 是 ','1'],[' 否 ','2']]);
}

//查看案件处理报批表列表信息
function queryCaseApprovalList(pageNum){
  	var superviseViewTypeId=document.getElementById("superviseViewTypeId").value;
    var insUnit=document.getElementById("insUnit").value.trim();
    document.getElementById("pageNum").value=pageNum;
    var isArchived="0";
    
  	Ext.Ajax.request({
		url: contextPath+"/execution/caseapproval!caseApprovalList.action?pageNum="+pageNum+"&superviseViewTypeId="+superviseViewTypeId+"&insUnit="+encodeURIComponent(insUnit,'UTF-8')+"&isArchived="+isArchived,
		success: function(request){
		   Ext.getDom("queryCaseApprovalList").innerHTML=request.responseText;
		   
		}
	});
}
  	
//查看案件处理报批表信息
function queryCaseApproval(caseApprovalId){
  	window.showModelessDialog(contextPath+"/execution/caseapproval!caseApprovalVerifyQueryForword.action?flag=view&caseApprovalId="+caseApprovalId,"","dialogHeight:730px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
}

//打印案件处理报批表信息
function printCaseApproval(caseApprovalId){
  	document.getElementById("overViewIframe").src=contextPath+"/execution/caseapproval!caseApprovalVerifyQueryForword.action?flag=print&caseApprovalId="+caseApprovalId;
}

//案件处理报批表修改转发
function caseApprovalUpdateForword(caseApprovalId){
  	///window.showModelessDialog(contextPath+"/execution/caseapproval!caseApprovalQueryForword.action?flag=update&caseApprovalId="+caseApprovalId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/caseapproval!caseApprovalQueryForword.action?flag=update&caseApprovalId="+caseApprovalId,"","dialogHeight:730px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	var pageNum=document.getElementById("pageNum").value;
    	queryCaseApprovalList(pageNum);
    }
}
  	
//删除案件处理报批表
function deleteCaseApproval(caseApprovalId){
  	
    Ext.Ajax.request({
		url: contextPath+"/execution/caseapproval!caseApprovalDelete.action?caseApprovalId="+caseApprovalId,
		success: function(request) {
           var data = Ext.util.JSON.decode(request.responseText);
		   if(data!=""){
		      if(data[0].msg=='success'){
		      	  
			      ymPrompt.succeedInfo('案件处理报批表信息删除成功！',null,null,'信息提示',function(button){if(button=='ok' || button=='close')queryCaseApprovalList('1');});
			   }else{
			      
			      ymPrompt.errorInfo('案件处理报批表信息删除失败，请重新删除！',null,null,'信息提示',null);
			   }
		   }
	   } 
   });
}

/***************************************************行政处罚集体讨论记录*******************************************************************/
//添加行政处罚集体讨论记录信息
function collectiveDiscussAddForword(overViewId,caseApprovalId){
  	///window.showModelessDialog(contextPath+"/execution/collectivediscuss!collectiveDiscussAddForword.action?caseApprovalId="+caseApprovalId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/collectivediscuss!collectiveDiscussAddForword.action?caseApprovalId="+caseApprovalId+"&overViewId="+overViewId+"&isAgainApproval=0","","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	queryCaseApprovalList('1');
    }
}  
  	
//查看行政处罚集体讨论记录列表信息
function queryCollectiveDiscussList(pageNum){
  	var superviseViewTypeId=document.getElementById("superviseViewTypeId").value;
    var insUnit=document.getElementById("insUnit").value.trim();
    document.getElementById("pageNum").value=pageNum;
    var isArchived="0";
    
  	Ext.Ajax.request({
		url: contextPath+"/execution/collectivediscuss!collectiveDiscussList.action?pageNum="+pageNum+"&superviseViewTypeId="+superviseViewTypeId+"&insUnit="+encodeURIComponent(insUnit,'UTF-8')+"&isArchived="+isArchived,
		success: function(request){
		   Ext.getDom("queryCollectiveDiscussList").innerHTML=request.responseText;
		   
		}
	});
}
  	
//查看行政处罚集体讨论记录信息
function queryCollectiveDiscuss(collectiveDiscussId){
  	window.showModelessDialog(contextPath+"/execution/collectivediscuss!collectiveDiscussQueryForword.action?flag=view&collectiveDiscussId="+collectiveDiscussId,"","dialogHeight:700px;dialogWidth:770px;status:no;help=no,resizable=no;edge:sunken;");
  	///window.showModelessDialog(contextPath+"/execution/collectivediscuss!collectiveDiscussQueryForword.action?flag=view&collectiveDiscussId="+collectiveDiscussId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
}

//打印行政处罚集体讨论记录信息
function printCollectiveDiscuss(collectiveDiscussId){
  	document.getElementById("overViewIframe").src=contextPath+"/execution/collectivediscuss!collectiveDiscussQueryForword.action?flag=print&collectiveDiscussId="+collectiveDiscussId;
}

//行政处罚集体讨论记录修改转发
function collectiveDiscussUpdateForword(collectiveDiscussId){
  	///window.showModelessDialog(contextPath+"/execution/collectivediscuss!collectiveDiscussQueryForword.action?flag=update&collectiveDiscussId="+collectiveDiscussId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/collectivediscuss!collectiveDiscussQueryForword.action?flag=update&collectiveDiscussId="+collectiveDiscussId,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	var pageNum=document.getElementById("pageNum").value;
    	queryCollectiveDiscussList(pageNum);
    }
}
  	
//删除行政处罚集体讨论记录表
function deleteCollectiveDiscuss(collectiveDiscussId,caseApprovalId){
  	
    Ext.Ajax.request({
		url: contextPath+"/execution/collectivediscuss!collectiveDiscussDelete.action?collectiveDiscussId="+collectiveDiscussId+"&caseApprovalId="+caseApprovalId,
		success: function(request) {
           var data = Ext.util.JSON.decode(request.responseText);
		   if(data!=""){
		      if(data[0].msg=='success'){
		      	  
			      ymPrompt.succeedInfo('行政处罚集体讨论记录表信息删除成功！',null,null,'信息提示',function(button){if(button=='ok' || button=='close')queryCollectiveDiscussList('1');});
			   }else{
			      
			      ymPrompt.errorInfo('行政处罚集体讨论记录表信息删除失败，请重新删除！',null,null,'信息提示',null);
			   }
		   }
	   } 
   });
}

/***************************************************行政处罚事先告知记录表*******************************************************************/  	
//添加行政处罚事先告知记录表记录信息(主要用于重新审核后的案件处理报批的添加行政处罚事先告知书记录表)
function priorinFormAddForwordByAgainApproval(pOverViewId,caseApprovalId){
	//window.showModelessDialog(contextPath+"/execution/priorinform!priorinFormAddForword.action?overViewId="+overViewId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/priorinform!priorinFormAddForword.action?pOverViewId="+pOverViewId+"&caseApprovalId="+caseApprovalId,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	queryCaseApprovalList('1');
    }
}

//添加行政处罚事先告知记录表记录信息
function priorinFormAddForword(flag,objectId,caseApprovalId){
  	if(flag=="1"){
  		//window.showModelessDialog(contextPath+"/execution/priorinform!priorinFormAddForword.action?overViewId="+overViewId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
	  	var return_value=window.showModalDialog(contextPath+"/execution/priorinform!priorinFormAddForword.action?pnlPorId="+objectId+"&caseApprovalId="+caseApprovalId,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	    if(return_value != null && return_value != "" && return_value == "true"){
	    	queryCaseApprovalList('1');
	    }
  	}else{
  		//window.showModelessDialog(contextPath+"/execution/priorinform!priorinFormAddForword.action?overViewId="+overViewId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
	  	var return_value=window.showModalDialog(contextPath+"/execution/priorinform!priorinFormAddForword.action?overViewId="+objectId,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	    if(return_value != null && return_value != "" && return_value == "true"){
	    	queryPriorinFormList('1');
	    }
  	}
}  
   	
//查看行政处罚事先告知记录表列表信息
function queryPriorinFormList(pageNum){
  	var superviseViewTypeId=document.getElementById("superviseViewTypeId").value;
    var insUnit=document.getElementById("insUnit").value.trim();
    document.getElementById("pageNum").value=pageNum;
    var isArchived="0";
    
  	Ext.Ajax.request({
		url: contextPath+"/execution/priorinform!priorinFormList.action?pageNum="+pageNum+"&superviseViewTypeId="+superviseViewTypeId+"&insUnit="+encodeURIComponent(insUnit,'UTF-8')+"&isArchived="+isArchived,
		success: function(request){
		   Ext.getDom("queryPriorinFormList").innerHTML=request.responseText;
		   
		}
	});
}
  	
//查看行政处罚事先告知记录表信息
function queryPriorinForm(priorinFormId){
  	window.showModelessDialog(contextPath+"/execution/priorinform!priorinFormQueryForword.action?flag=view&priorinFormId="+priorinFormId,"","dialogHeight:700px;dialogWidth:770px;status:no;help=no,resizable=no;edge:sunken;");
  	///window.showModelessDialog(contextPath+"/execution/priorinform!priorinFormQueryForword.action?flag=view&priorinFormId="+priorinFormId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
}
//打印行政处罚事先告知记录表信息
function printPriorinForm(priorinFormId){
	document.getElementById("overViewIframe").src=contextPath+"/execution/priorinform!priorinFormQueryForword.action?flag=print&priorinFormId="+priorinFormId;
}	
//行政处罚事先告知记录表修改转发
function priorinFormUpdateForword(priorinFormId){
  	//window.showModelessDialog(contextPath+"/execution/priorinform!priorinFormQueryForword.action?flag=update&priorinFormId="+priorinFormId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/priorinform!priorinFormQueryForword.action?flag=update&priorinFormId="+priorinFormId,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	var pageNum=document.getElementById("pageNum").value;
    	queryPriorinFormList(pageNum);
    }
}
  	
//删除行政处罚事先告知记录表
function deletePriorinForm(priorinFormId){
  	
    Ext.Ajax.request({
		url: contextPath+"/execution/priorinform!priorinFormDelete.action?priorinFormId="+priorinFormId,
		success: function(request) {
           var data = Ext.util.JSON.decode(request.responseText);
		   if(data!=""){
		      if(data[0].msg=='success'){
		      	  
			      ymPrompt.succeedInfo('行政处罚事先告知记录表信息删除成功！',null,null,'信息提示',function(button){if(button=='ok' || button=='close')queryPriorinFormList('1');});
			   }else{
			      
			      ymPrompt.errorInfo('行政处罚事先告知记录表信息删除失败，请重新删除！',null,null,'信息提示',null);
			   }
		   }
	   } 
   });
}

/**********************************************行政处罚事先告知送达回证记录表*************************************************************/
//添加行政处罚事先告知送达回证记录表信息
function priorinFormAorAddForword(priorinFormId,decisionObjectType,isExceedAuthority,penaltyCash){
  	//表示当事人为自然人
 	if(decisionObjectType=="2"){
 		if(isExceedAuthority=="1" && penaltyCash=="0"){
 			//有权听证
 			var return_value=window.showModalDialog(contextPath+"/execution/priorinformaor!priorinFormAorAddForword.action?isShowTakeStateMentDefend=0&priorinFormId="+priorinFormId,"","dialogHeight:505px;dialogWidth:749px;status:no;help=no,resizable=no;edge:sunken;");
 		}else{
 			if(penaltyCash>=10000){
		    	//有权听证
		    	var return_value=window.showModalDialog(contextPath+"/execution/priorinformaor!priorinFormAorAddForword.action?isShowTakeStateMentDefend=0&priorinFormId="+priorinFormId,"","dialogHeight:505px;dialogWidth:749px;status:no;help=no,resizable=no;edge:sunken;");
		 	}else{
		        //无权听证
		        var return_value=window.showModalDialog(contextPath+"/execution/priorinformaor!priorinFormAorAddForword.action?isShowTakeStateMentDefend=1&priorinFormId="+priorinFormId,"","dialogHeight:505px;dialogWidth:749px;status:no;help=no,resizable=no;edge:sunken;");
		 	}
 		}
 	}else{
 		if(isExceedAuthority=="1" && penaltyCash=="0"){
 			//1有权听证
 			var return_value=window.showModalDialog(contextPath+"/execution/priorinformaor!priorinFormAorAddForword.action?isShowTakeStateMentDefend=0&priorinFormId="+priorinFormId,"","dialogHeight:505px;dialogWidth:749px;status:no;help=no,resizable=no;edge:sunken;");
 		}else{
 			if(penaltyCash>=30000){
		    	//有权听证
		    	var return_value=window.showModalDialog(contextPath+"/execution/priorinformaor!priorinFormAorAddForword.action?isShowTakeStateMentDefend=0&priorinFormId="+priorinFormId,"","dialogHeight:505px;dialogWidth:749px;status:no;help=no,resizable=no;edge:sunken;");
		 	}else{
		        //无权听证
		        var return_value=window.showModalDialog(contextPath+"/execution/priorinformaor!priorinFormAorAddForword.action?isShowTakeStateMentDefend=1&priorinFormId="+priorinFormId,"","dialogHeight:505px;dialogWidth:749px;status:no;help=no,resizable=no;edge:sunken;");
		 	}
 		}
 	}
  	///window.showModelessDialog(contextPath+"/execution/priorinformaor!priorinFormAorAddForword.action?priorinFormId="+priorinFormId,"","height=580,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	//var return_value=window.showModalDialog(contextPath+"/execution/priorinformaor!priorinFormAorAddForword.action?priorinFormId="+priorinFormId,"","dialogHeight:505px;dialogWidth:749px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	queryPriorinFormList('1');
    }
}  

//查看行政处罚事先告知送达回证记录表列表信息
function queryPriorinFormAorList(pageNum){
  	var superviseViewTypeId=document.getElementById("superviseViewTypeId").value;
    var insUnit=document.getElementById("insUnit").value.trim();
    document.getElementById("pageNum").value=pageNum;
    var isArchived="0";
    
  	Ext.Ajax.request({
		url: contextPath+"/execution/priorinformaor!priorinFormAorList.action?pageNum="+pageNum+"&superviseViewTypeId="+superviseViewTypeId+"&insUnit="+encodeURIComponent(insUnit,'UTF-8')+"&isArchived="+isArchived,
		success: function(request){
		   Ext.getDom("queryPriorinFormAorList").innerHTML=request.responseText;
		   
		}
	});
}
  	
//查看行政处罚事先告知送达回证记录表信息
function queryPriorinFormAor(priorinFormAorId){
  	window.showModelessDialog(contextPath+"/execution/priorinformaor!priorinFormAorQueryForword.action?flag=view&priorinFormAorId="+priorinFormAorId,"","dialogHeight:507px;dialogWidth:753px;status:no;help=no,resizable=no;edge:sunken;");
  	///window.showModelessDialog(contextPath+"/execution/priorinformaor!priorinFormAorQueryForword.action?flag=view&priorinFormAorId="+priorinFormAorId,"","height=580,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
}
//打印行政处罚事先告知送达回证记录表信息
function printPriorinFormAor(priorinFormAorId){
	document.getElementById("overViewIframe").src=contextPath+"/execution/priorinformaor!priorinFormAorQueryForword.action?flag=print&priorinFormAorId="+priorinFormAorId;
}
//行政处罚事先告知送达回证记录表修改转发
function priorinFormAorUpdateForword(priorinFormAorId){
  	///window.showModelessDialog(contextPath+"/execution/priorinformaor!priorinFormAorQueryForword.action?flag=update&priorinFormAorId="+priorinFormAorId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/priorinformaor!priorinFormAorQueryForword.action?flag=update&priorinFormAorId="+priorinFormAorId,"","dialogHeight:505px;dialogWidth:749px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	var pageNum=document.getElementById("pageNum").value;
    	queryPriorinFormAorList(pageNum);
    }
}
  	
//删除行政处罚事先告知送达回证记录表
function deletePriorinFormAor(priorinFormAorId){
  	
    Ext.Ajax.request({
		url: contextPath+"/execution/priorinformaor!priorinFormAorDelete.action?priorinFormAorId="+priorinFormAorId,
		success: function(request) {
           var data = Ext.util.JSON.decode(request.responseText);
		   if(data!=""){
		      if(data[0].msg=='success'){
		      	  
			      ymPrompt.succeedInfo('行政处罚事先告知送达回证记录表信息删除成功！',null,null,'信息提示',function(button){if(button=='ok' || button=='close')queryPriorinFormAorList('1');});
			   }else{
			      
			      ymPrompt.errorInfo('行政处罚事先告知送达回证记录表信息删除失败，请重新删除！',null,null,'信息提示',null);
			   }
		   }
	   } 
   });
}
  	
//添加行政处罚事先告知记录表下一环节记录信息
function priorinFormAorNextAddForword(overViewId,isShowTakeStateMentDefend,isTakeStateMentDefend){
 	if(isShowTakeStateMentDefend=="1"){
 		if(isTakeStateMentDefend=="1"){
 			//进行陈述申辩!
 			var return_value=window.showModalDialog(contextPath+"/execution/defendoneself!defendOneSelfAddForword.action?overViewId="+overViewId,"","dialogHeight:768px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
 		}else{
 			//进行处罚
   	  		var return_value=window.showModalDialog(contextPath+"/execution/decision!decisionAddForword.action?overViewId="+overViewId,"","dialogHeight:768px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
 		}
 	}else{
 		//进行听证告知书
 		var return_value=window.showModalDialog(contextPath+"/execution/howinform!howinFormAddForword.action?overViewId="+overViewId,"","dialogHeight:768px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
 	}
  	//window.showModelessDialog(contextPath+"/execution/priorinform!priorinFormAddForword.action?inpectionId="+inpectionId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
    if(return_value != null && return_value != "" && return_value == "true"){
    	queryPriorinFormAorList('1');
    }
} 
  	
/**********************************************陈述笔录记录表*************************************************************/
//查看陈述笔录记录表列表信息
function queryDefendOneSelfList(pageNum){
  	var superviseViewTypeId=document.getElementById("superviseViewTypeId").value;
    var defender=document.getElementById("defender").value.trim();
    var defendOneSelfStartDate1=document.getElementById("defendOneSelfStartDate1").value.trim();
    var defendOneSelfStartDate2=document.getElementById("defendOneSelfStartDate2").value.trim();
    var defendOneSelfStopDate1=document.getElementById("defendOneSelfStopDate1").value.trim();
    var defendOneSelfStopDate2=document.getElementById("defendOneSelfStopDate2").value.trim();
    document.getElementById("pageNum").value=pageNum;
    var isArchived="0";
    
  	Ext.Ajax.request({
		url: contextPath+"/execution/defendoneself!defendOneSelfList.action?pageNum="+pageNum+"&superviseViewTypeId="+superviseViewTypeId+"&defender="+encodeURIComponent(defender,'UTF-8')+"&defendOneSelfStartDate1="+defendOneSelfStartDate1+"&defendOneSelfStartDate2="+defendOneSelfStartDate2+"&defendOneSelfStopDate1="+defendOneSelfStopDate1+"&defendOneSelfStopDate2="+defendOneSelfStopDate2+"&isArchived="+isArchived,
		success: function(request){
		   Ext.getDom("queryDefendOneSelfList").innerHTML=request.responseText;
		   
		}
	});
}
  	
//查看陈述笔录记录表信息
function queryDefendOneSelf(defendOneSelfId){
	window.showModelessDialog(contextPath+"/execution/defendoneself!defendOneSelfQueryForword.action?flag=view&defendOneSelfId="+defendOneSelfId,"","dialogHeight:700px;dialogWidth:770px;status:no;help=no,resizable=no;edge:sunken;");
	///window.showModelessDialog(contextPath+"/execution/defendoneself!defendOneSelfQueryForword.action?flag=view&defendOneSelfId="+defendOneSelfId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
}
//打印陈述笔录记录表信息
function printDefendOneSelf(defendOneSelfId){
	document.getElementById("overViewIframe").src=contextPath+"/execution/defendoneself!defendOneSelfQueryForword.action?flag=print&defendOneSelfId="+defendOneSelfId;
}  	
//陈述笔录表修改转发
function defendOneSelfUpdateForword(defendOneSelfId){
  	//window.showModelessDialog(contextPath+"/execution/defendoneself!defendOneSelfQueryForword.action?flag=update&defendOneSelfId="+defendOneSelfId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/defendoneself!defendOneSelfQueryForword.action?flag=update&defendOneSelfId="+defendOneSelfId,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	var pageNum=document.getElementById("pageNum").value;
    	queryDefendOneSelfList(pageNum);
    }
}
  	
//删除陈述笔录表
function deleteDefendOneSelf(defendOneSelfId){
  	
    Ext.Ajax.request({
		url: contextPath+"/execution/defendoneself!defendOneSelfDelete.action?defendOneSelfId="+defendOneSelfId,
		success: function(request) {
           var data = Ext.util.JSON.decode(request.responseText);
		   if(data!=""){
		      if(data[0].msg=='success'){
		      	  
			      ymPrompt.succeedInfo('陈述笔录表信息删除成功！',null,null,'信息提示',function(button){if(button=='ok' || button=='close')queryDefendOneSelfList('1');});
			   }else{
			      
			      ymPrompt.errorInfo('陈述笔录表信息删除失败，请重新删除！',null,null,'信息提示',null);
			   }
		   }
	   } 
   });
}

//添加陈述笔录表下一环节记录信息
function defendOneSelfNextAddForword(overViewId,isNeedHow){
  	if(isNeedHow=="1"){
   	   //alert("进行听证通知书!");
   	   //window.showModelessDialog(contextPath+"/execution/hownotice!howNoticeAddForword.action?overViewId="+overViewId,"","height=580,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
   	   var return_value=window.showModalDialog(contextPath+"/execution/hownotice!howNoticeAddForword.action?overViewId="+overViewId,"","dialogHeight:580px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
   	}else{
   	   //alert("进行处罚");
   	   var return_value=window.showModalDialog(contextPath+"/execution/decision!decisionAddForword.action?overViewId="+overViewId,"","dialogHeight:768px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
   	}
    if(return_value != null && return_value != "" && return_value == "true"){
    	queryDefendOneSelfList('1');
    }
}
  	
/**********************************************行政处罚听证告知记录表*************************************************************/

//查看行政处罚听证告知记录表列表信息
function queryHowinFormList(pageNum){
  	var superviseViewTypeId=document.getElementById("superviseViewTypeId").value;
    var insUnit=document.getElementById("insUnit").value.trim();
    document.getElementById("pageNum").value=pageNum;
    var isArchived="0";
    
  	Ext.Ajax.request({
		url: contextPath+"/execution/howinform!howinFormList.action?pageNum="+pageNum+"&superviseViewTypeId="+superviseViewTypeId+"&insUnit="+encodeURIComponent(insUnit,'UTF-8')+"&isArchived="+isArchived,
		success: function(request){
		   Ext.getDom("queryHowinFormList").innerHTML=request.responseText;
		   
		}
	});
}
  	
//查看行政处罚听证告知记录表信息
function queryHowinForm(howinFormId){
  	window.showModelessDialog(contextPath+"/execution/howinform!howinFormQueryForword.action?flag=view&howinFormId="+howinFormId,"","dialogHeight:768px;dialogWidth:770px;status:no;help=no,resizable=no;edge:sunken;");
  	///window.showModelessDialog(contextPath+"/execution/howinform!howinFormQueryForword.action?flag=view&howinFormId="+howinFormId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
}
//打印行政处罚听证告知记录表信息
function printHowinForm(howinFormId){
	document.getElementById("overViewIframe").src=contextPath+"/execution/howinform!howinFormQueryForword.action?flag=print&howinFormId="+howinFormId;
}  	
//行政处罚听证告知记录表修改转发
function howinFormUpdateForword(howinFormId){
  	//window.showModelessDialog(contextPath+"/execution/howinform!howinFormQueryForword.action?flag=update&howinFormId="+howinFormId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/howinform!howinFormQueryForword.action?flag=update&howinFormId="+howinFormId,"","dialogHeight:768px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	var pageNum=document.getElementById("pageNum").value;
    	queryHowinFormList(pageNum);
    }
}
  	
//删除行政处罚听证告知记录表
function deleteHowinForm(howinFormId){
  	
    Ext.Ajax.request({
		url: contextPath+"/execution/howinform!howinFormDelete.action?howinFormId="+howinFormId,
		success: function(request) {
           var data = Ext.util.JSON.decode(request.responseText);
		   if(data!=""){
		      if(data[0].msg=='success'){
		      	  
			      ymPrompt.succeedInfo('行政处罚听证告知记录表信息删除成功！',null,null,'信息提示',function(button){if(button=='ok' || button=='close')queryHowinFormList('1');});
			   }else{
			      
			      ymPrompt.errorInfo('行政处罚听证告知记录表信息删除失败，请重新删除！',null,null,'信息提示',null);
			   }
		   }
	   } 
   });
}
  	 
/**********************************************行政处罚听证告知送达回证记录表*************************************************************/
//添加行政处罚听证告知送达回证记录表信息
function howinFormAorAddForword(howinFormId){
  	//window.showModelessDialog(contextPath+"/execution/howinformaor!howinFormAorAddForword.action?howinFormId="+howinFormId,"","height=590,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/howinformaor!howinFormAorAddForword.action?howinFormId="+howinFormId,"","dialogHeight:505px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	queryHowinFormList('1');
    }
} 

//查看行政处罚听证告知送达回证记录表列表信息
function queryHowinFormAorList(pageNum){
  	var superviseViewTypeId=document.getElementById("superviseViewTypeId").value;
    var insUnit=document.getElementById("insUnit").value.trim();
    document.getElementById("pageNum").value=pageNum;
    var isArchived="0";
    
  	Ext.Ajax.request({
		url: contextPath+"/execution/howinformaor!howinFormAorList.action?pageNum="+pageNum+"&superviseViewTypeId="+superviseViewTypeId+"&insUnit="+encodeURIComponent(insUnit,'UTF-8')+"&isArchived="+isArchived,
		success: function(request){
		   Ext.getDom("queryHowinFormAorList").innerHTML=request.responseText;
		   
		}
	});
}
  	
//查看行政处罚听证告知送达回证记录表信息
function queryHowinFormAor(howinFormAorId){
  	window.showModelessDialog(contextPath+"/execution/howinformaor!howinFormAorQueryForword.action?flag=view&howinFormAorId="+howinFormAorId,"","dialogHeight:508px;dialogWidth:755px;status:no;help=no,resizable=no;edge:sunken;");
  	///window.showModelessDialog(contextPath+"/execution/howinformaor!howinFormAorQueryForword.action?flag=view&howinFormAorId="+howinFormAorId,"","height=590,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
}
//打印行政处罚听证告知送达回证记录表信息
function printHowinFormAor(howinFormAorId){
	document.getElementById("overViewIframe").src=contextPath+"/execution/howinformaor!howinFormAorQueryForword.action?flag=print&howinFormAorId="+howinFormAorId;
}  	
//行政处罚听证告知送达回证记录表修改转发
function howinFormAorUpdateForword(howinFormAorId){
  	//window.showModelessDialog(contextPath+"/execution/howinformaor!howinFormAorQueryForword.action?flag=update&howinFormAorId="+howinFormAorId,"","height=590,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/howinformaor!howinFormAorQueryForword.action?flag=update&howinFormAorId="+howinFormAorId,"","dialogHeight:505px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	var pageNum=document.getElementById("pageNum").value;
    	queryHowinFormAorList(pageNum);
    }
}
  	
//删除行政处罚听证告知送达回证记录表
function deleteHowinFormAor(howinFormAorId){
  	
    Ext.Ajax.request({
		url: contextPath+"/execution/howinformaor!howinFormAorDelete.action?howinFormAorId="+howinFormAorId,
		success: function(request) {
           var data = Ext.util.JSON.decode(request.responseText);
		   if(data!=""){
		      if(data[0].msg=='success'){
		      	  
			      ymPrompt.succeedInfo('行政处罚听证告知送达回证记录表信息删除成功！',null,null,'信息提示',function(button){if(button=='ok' || button=='close')queryHowinFormAorList('1');});
			   }else{
			      
			      ymPrompt.errorInfo('行政处罚听证告知送达回证记录表信息删除失败，请重新删除！',null,null,'信息提示',null);
			   }
		   }
	   } 
   });
}
  	
/**********************************************行政处罚听证通知书记录表*************************************************************/
//添加行政处罚听证告知记录表下一环节记录信息
function nextHowinFormAorAddForword(overViewId,isTakeStateMentDefend,isNeedHow){
   	if(isTakeStateMentDefend=="1"){
   		var return_value=window.showModalDialog(contextPath+"/execution/defendoneself!defendOneSelfAddForword.action?overViewId="+overViewId,"","dialogHeight:768px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
   	}else{
   		if(isNeedHow=="1"){
	   	   //alert("进行听证通知书!");
	   	   //window.showModelessDialog(contextPath+"/execution/hownotice!howNoticeAddForword.action?overViewId="+overViewId,"","height=580,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
	   	   var return_value=window.showModalDialog(contextPath+"/execution/hownotice!howNoticeAddForword.action?overViewId="+overViewId,"","dialogHeight:580px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	   	}else{
	   	   //alert("进行处罚");
	   	   var return_value=window.showModalDialog(contextPath+"/execution/decision!decisionAddForword.action?overViewId="+overViewId,"","dialogHeight:768px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	   	}
   	}
  	//window.showModelessDialog(contextPath+"/execution/priorinform!priorinFormAddForword.action?inpectionId="+inpectionId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
    if(return_value != null && return_value != "" && return_value == "true"){
    	queryHowinFormAorList('1');
    }
}

//查看行政处罚听证通知书记录表列表信息
function queryHowNoticeList(pageNum){
  	var superviseViewTypeId=document.getElementById("superviseViewTypeId").value;
    var insUnit=document.getElementById("insUnit").value.trim();
    var howDate1=document.getElementById("howDate1").value;
    var howDate2=document.getElementById("howDate2").value;
    document.getElementById("pageNum").value=pageNum;
    var isArchived="0";
    
  	Ext.Ajax.request({
		url: contextPath+"/execution/hownotice!howNoticeList.action?pageNum="+pageNum+"&superviseViewTypeId="+superviseViewTypeId+"&insUnit="+encodeURIComponent(insUnit,'UTF-8')+"&howDate1="+howDate1+"&howDate2="+howDate2+"&isArchived="+isArchived,
		success: function(request){
		   Ext.getDom("queryHowNoticeList").innerHTML=request.responseText;
		   
		}
	});
}
  	
//查看行政处罚听证通知书记录表信息
function queryHowNotice(howNoticeId){
  	window.showModelessDialog(contextPath+"/execution/hownotice!howNoticeQueryForword.action?flag=view&howNoticeId="+howNoticeId,"","dialogHeight:630px;dialogWidth:770px;status:no;help=no,resizable=no;edge:sunken;");
  	///window.showModelessDialog(contextPath+"/execution/hownotice!howNoticeQueryForword.action?flag=view&howNoticeId="+howNoticeId,"","height=590,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
}
//打印行政处罚听证通知书记录表信息
function printHowNotice(howNoticeId){
	document.getElementById("overViewIframe").src=contextPath+"/execution/hownotice!howNoticeQueryForword.action?flag=print&howNoticeId="+howNoticeId;
}  	
//行政处罚听证通知书记录表修改转发
function howNoticeUpdateForword(howNoticeId){
  	//window.showModelessDialog(contextPath+"/execution/hownotice!howNoticeQueryForword.action?flag=update&howNoticeId="+howNoticeId,"","height=590,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/hownotice!howNoticeQueryForword.action?flag=update&howNoticeId="+howNoticeId,"","dialogHeight:595px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	var pageNum=document.getElementById("pageNum").value;
    	queryHowNoticeList(pageNum);
    }
}
  	
//删除行政处罚听证通知书记录表
function deleteHowNotice(howNoticeId){
  	
    Ext.Ajax.request({
		url: contextPath+"/execution/hownotice!howNoticeDelete.action?howNoticeId="+howNoticeId,
		success: function(request) {
           var data = Ext.util.JSON.decode(request.responseText);
		   if(data!=""){
		      if(data[0].msg=='success'){
		      	  
			      ymPrompt.succeedInfo('行政处罚听证通知书记录表信息删除成功！',null,null,'信息提示',function(button){if(button=='ok' || button=='close')queryHowNoticeList('1');});
			   }else{
			      
			      ymPrompt.errorInfo('行政处罚听证通知书记录表信息删除失败，请重新删除！',null,null,'信息提示',null);
			   }
		   }
	   } 
   });
}
  	
//**********************************************行政处罚听证通知送达回证记录表*************************************************************
//添加行政处罚听证通知送达回证记录表信息
function howNoticeAorAddForword(howNoticeId){
  	//window.showModelessDialog(contextPath+"/execution/hownoticeaor!howNoticeAorAddForword.action?howNoticeId="+howNoticeId,"","height=590,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/hownoticeaor!howNoticeAorAddForword.action?howNoticeId="+howNoticeId,"","dialogHeight:485px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	queryHowNoticeList('1');
    }
}

//查看行政处罚听证通知送达回证记录表列表信息
function queryHowNoticeAorList(pageNum){
  	var superviseViewTypeId=document.getElementById("superviseViewTypeId").value;
    var insUnit=document.getElementById("insUnit").value.trim();
    document.getElementById("pageNum").value=pageNum;
    var isArchived="0";
    
  	Ext.Ajax.request({
		url: contextPath+"/execution/hownoticeaor!howNoticeAorList.action?pageNum="+pageNum+"&superviseViewTypeId="+superviseViewTypeId+"&insUnit="+encodeURIComponent(insUnit,'UTF-8')+"&isArchived="+isArchived,
		success: function(request){
		   Ext.getDom("queryHowNoticeAorList").innerHTML=request.responseText;
		   
		}
	});
}
  	
//查看行政处罚听证通知送达回证记录表信息
function queryHowNoticeAor(howNoticeAorId){
  	window.showModelessDialog(contextPath+"/execution/hownoticeaor!howNoticeAorQueryForword.action?flag=view&howNoticeAorId="+howNoticeAorId,"","dialogHeight:490px;dialogWidth:755px;status:no;help=no,resizable=no;edge:sunken;");
  	///window.showModelessDialog(contextPath+"/execution/hownoticeaor!howNoticeAorQueryForword.action?flag=view&howNoticeAorId="+howNoticeAorId,"","height=580,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
}

//打印行政处罚听证通知送达回证记录表信息
function printHowNoticeAor(howNoticeAorId){
	document.getElementById("overViewIframe").src=contextPath+"/execution/hownoticeaor!howNoticeAorQueryForword.action?flag=print&howNoticeAorId="+howNoticeAorId;
}

//行政处罚听证通知送达回证记录表修改转发
function howNoticeAorUpdateForword(howNoticeAorId){
  	//window.showModelessDialog(contextPath+"/execution/hownoticeaor!howNoticeAorQueryForword.action?flag=update&howNoticeAorId="+howNoticeAorId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/hownoticeaor!howNoticeAorQueryForword.action?flag=update&howNoticeAorId="+howNoticeAorId,"","dialogHeight:485px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	var pageNum=document.getElementById("pageNum").value;
    	queryHowNoticeAorList(pageNum);
    }
}
  	
//删除行政处罚听证通知送达回证记录表
function deleteHowNoticeAor(howNoticeAorId){
  	
    Ext.Ajax.request({
		url: contextPath+"/execution/hownoticeaor!howNoticeAorDelete.action?howNoticeAorId="+howNoticeAorId,
		success: function(request) {
           var data = Ext.util.JSON.decode(request.responseText);
		   if(data!=""){
		      if(data[0].msg=='success'){
		      	  
			      ymPrompt.succeedInfo('行政处罚听证通知送达回证记录表信息删除成功！',null,null,'信息提示',function(button){if(button=='ok' || button=='close')queryHowNoticeAorList('1');});
			   }else{
			      
			      ymPrompt.errorInfo('行政处罚听证通知送达回证记录表信息删除失败，请重新删除！',null,null,'信息提示',null);
			   }
		   }
	   } 
   });
}
  	
/**********************************************行政处罚听证笔录记录表*************************************************************/
//添加行政处罚听证笔录记录表信息
function howRecordAddForword(overViewId){
  	//window.showModelessDialog(contextPath+"/execution/howrecord!howRecordAddForword.action?overViewId="+overViewId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/howrecord!howRecordAddForword.action?overViewId="+overViewId,"","dialogHeight:768px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	queryHowNoticeAorList('1');
    }
}

//查看行政处罚听证笔录记录表列表信息
function queryHowRecordList(pageNum){
  	var superviseViewTypeId=document.getElementById("superviseViewTypeId").value;
    var parties=document.getElementById("parties").value.trim();
    var howDate1=document.getElementById("howDate1").value;
    var howDate2=document.getElementById("howDate2").value;
    document.getElementById("pageNum").value=pageNum;
    var isArchived="0";
    
  	Ext.Ajax.request({
		url: contextPath+"/execution/howrecord!howRecordList.action?pageNum="+pageNum+"&superviseViewTypeId="+superviseViewTypeId+"&parties="+encodeURIComponent(parties,'UTF-8')+"&howDate1="+howDate1+"&howDate2="+howDate2+"&isArchived="+isArchived,
		success: function(request){
		   Ext.getDom("queryHowRecordList").innerHTML=request.responseText;
		   
		}
	});
}
  	
//查看行政处罚听证笔录记录表信息
function queryHowRecord(howRecordId){
  	window.showModelessDialog(contextPath+"/execution/howrecord!howRecordQueryForword.action?flag=view&howRecordId="+howRecordId,"","dialogHeight:768px;dialogWidth:770px;status:no;help=no,resizable=no;edge:sunken;");
  	///window.showModelessDialog(contextPath+"/execution/howrecord!howRecordQueryForword.action?flag=view&howRecordId="+howRecordId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
}

//打印行政处罚听证笔录记录表信息
function printHowRecord(howRecordId){
	document.getElementById("overViewIframe").src=contextPath+"/execution/howrecord!howRecordQueryForword.action?flag=print&howRecordId="+howRecordId;
}
  	
//行政处罚听证笔录记录表修改转发
function howRecordUpdateForword(howRecordId){
  	//window.showModelessDialog(contextPath+"/execution/howrecord!howRecordQueryForword.action?flag=update&howRecordId="+howRecordId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/howrecord!howRecordQueryForword.action?flag=update&howRecordId="+howRecordId,"","dialogHeight:768px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	var pageNum=document.getElementById("pageNum").value;
    	queryHowRecordList(pageNum);
    }
}
  	
//删除行政处罚听证笔录记录表
function deleteHowRecord(howRecordId){
  	
    Ext.Ajax.request({
		url: contextPath+"/execution/howrecord!howRecordDelete.action?howRecordId="+howRecordId,
		success: function(request) {
           var data = Ext.util.JSON.decode(request.responseText);
		   if(data!=""){
		      if(data[0].msg=='success'){
		      	  
			      ymPrompt.succeedInfo('行政处罚听证笔录记录表信息删除成功！',null,null,'信息提示',function(button){if(button=='ok' || button=='close')queryHowRecordList('1');});
			   }else{
			      
			      ymPrompt.errorInfo('行政处罚听证笔录记录表信息删除失败，请重新删除！',null,null,'信息提示',null);
			   }
		   }
	   } 
   });
}
  	
/**********************************************听证会报告书记录表*************************************************************/
//添加行政处罚听证会报告书记录表信息
function howReportAddForword(howRecordId){
  	//window.showModelessDialog(contextPath+"/execution/howreport!howReportAddForword.action?howRecordId="+howRecordId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/howreport!howReportAddForword.action?howRecordId="+howRecordId,"","dialogHeight:768px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	queryHowRecordList('1');
    }
} 

//查看听证会报告书记录表列表信息
function queryHowReportList(pageNum){
  	var superviseViewTypeId=document.getElementById("superviseViewTypeId").value;
    var parties=document.getElementById("parties").value.trim();
    document.getElementById("pageNum").value=pageNum;
    var isArchived="0";
    
  	Ext.Ajax.request({
		url: contextPath+"/execution/howreport!howReportList.action?pageNum="+pageNum+"&superviseViewTypeId="+superviseViewTypeId+"&parties="+encodeURIComponent(parties,'UTF-8')+"&isArchived="+isArchived,
		success: function(request){
		   Ext.getDom("queryHowReportList").innerHTML=request.responseText;
		   
		}
	});
}
  	
//查看听证会报告书记录表信息
function queryHowReport(howReportId){
  	window.showModelessDialog(contextPath+"/execution/howreport!howReportQueryForword.action?flag=view&howReportId="+howReportId,"","dialogHeight:740px;dialogWidth:770px;status:no;help=no,resizable=no;edge:sunken;");
  	///window.showModelessDialog(contextPath+"/execution/howreport!howReportQueryForword.action?flag=view&howReportId="+howReportId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
}
  
//打印听证会报告书记录表信息
function printHowReport(howReportId){
	document.getElementById("overViewIframe").src=contextPath+"/execution/howreport!howReportQueryForword.action?flag=print&howReportId="+howReportId;
}
  	
//听证会报告书记录表修改转发
function howReportUpdateForword(howReportId){
  	//window.showModelessDialog(contextPath+"/execution/howreport!howReportQueryForword.action?flag=update&howReportId="+howReportId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/howreport!howReportQueryForword.action?flag=update&howReportId="+howReportId,"","dialogHeight:768px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	var pageNum=document.getElementById("pageNum").value;
    	queryHowReportList(pageNum);
    }
}
  	
//删除听证会报告书记录表
function deleteHowReport(howReportId){
  	
    Ext.Ajax.request({
		url: contextPath+"/execution/howreport!howReportDelete.action?howReportId="+howReportId,
		success: function(request) {
           var data = Ext.util.JSON.decode(request.responseText);
		   if(data!=""){
		      if(data[0].msg=='success'){
		      	  
			      ymPrompt.succeedInfo('听证会报告书记录表信息删除成功！',null,null,'信息提示',function(button){if(button=='ok' || button=='close')queryHowReportList('1');});
			   }else{
			      
			      ymPrompt.errorInfo('听证会报告书记录表信息删除失败，请重新删除！',null,null,'信息提示',null);
			   }
		   }
	   } 
   });
}

//**********************************************行政处罚决定书记录表*************************************************************
//添加行政处罚决定书记录表信息
function decisionAddForword(overViewId){
  	///window.showModelessDialog(contextPath+"/execution/decision!decisionAddForword.action?overViewId="+overViewId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/decision!decisionAddForword.action?overViewId="+overViewId,"","dialogHeight:768px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	queryHowReportList('1');
    }
}

//查看行政处罚决定书记录表列表信息
function queryDecisionList(pageNum){
  	var superviseViewTypeId=document.getElementById("superviseViewTypeId").value;
    var parties=document.getElementById("parties").value.trim();
    var decisionDate1=document.getElementById("decisionDate1").value.trim();
    var decisionDate2=document.getElementById("decisionDate2").value.trim();
    document.getElementById("pageNum").value=pageNum;
    var isArchived="0";
    
  	Ext.Ajax.request({
		url: contextPath+"/execution/decision!decisionList.action?pageNum="+pageNum+"&superviseViewTypeId="+superviseViewTypeId+"&parties="+encodeURIComponent(parties,'UTF-8')+"&decisionDate1="+decisionDate1+"&decisionDate2="+decisionDate2+"&isArchived="+isArchived,
		success: function(request){
		   Ext.getDom("queryDecisionList").innerHTML=request.responseText;
		   
		}
	});
}
  	
//查看行政处罚决定书记录表信息
function queryDecision(decisionId){
 	window.showModelessDialog(contextPath+"/execution/decision!decisionQueryForword.action?flag=view&decisionId="+decisionId,"","dialogHeight:700px;dialogWidth:770px;status:no;help=no,resizable=no;edge:sunken;");
 	///window.showModelessDialog(contextPath+"/execution/decision!decisionQueryForword.action?flag=view&decisionId="+decisionId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
}

//打印行政处罚决定书记录表信息
function printDecision(decisionId){
	document.getElementById("overViewIframe").src=contextPath+"/execution/decision!decisionQueryForword.action?flag=print&decisionId="+decisionId;
}
	
//行政处罚决定书记录表修改转发
function decisionUpdateForword(decisionId){
  	//window.showModelessDialog(contextPath+"/execution/decision!decisionQueryForword.action?flag=update&decisionId="+decisionId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/decision!decisionQueryForword.action?flag=update&decisionId="+decisionId,"","dialogHeight:700px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	var pageNum=document.getElementById("pageNum").value;
    	queryDecisionList(pageNum);
    }
}
  	
//删除行政处罚决定书记录表
function deleteDecision(decisionId){
  	
    Ext.Ajax.request({
		url: contextPath+"/execution/decision!decisionDelete.action?decisionId="+decisionId,
		success: function(request) {
           var data = Ext.util.JSON.decode(request.responseText);
		   if(data!=""){
		      if(data[0].msg=='success'){
		      	  
			      ymPrompt.succeedInfo('行政处罚决定书记录表信息删除成功！',null,null,'信息提示',function(button){if(button=='ok' || button=='close')queryDecisionList('1');});
			   }else{
			      
			      ymPrompt.errorInfo('行政处罚决定书记录表信息删除失败，请重新删除！',null,null,'信息提示',null);
			   }
		   }
	   } 
   });
}
  	
//**********************************************行政处罚决定书送达回证记录表*************************************************************
  	
//添加行政处罚决定书送达回证记录表信息
function decisionAorAddForword(decisionId){
  	//window.showModelessDialog(contextPath+"/execution/decisionaor!decisionAorAddForword.action?decisionId="+decisionId,"","height=580,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/decisionaor!decisionAorAddForword.action?decisionId="+decisionId,"","dialogHeight:485px;dialogWidth:749px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	queryDecisionList('1');
    }
}

//查看行政处罚决定书送达回证记录表列表信息
function queryDecisionAorList(pageNum){
  	var superviseViewTypeId=document.getElementById("superviseViewTypeId").value;
    var parties=document.getElementById("parties").value.trim();
    document.getElementById("pageNum").value=pageNum;
    var isArchived="0";
    
  	Ext.Ajax.request({
		url: contextPath+"/execution/decisionaor!decisionAorList.action?pageNum="+pageNum+"&superviseViewTypeId="+superviseViewTypeId+"&parties="+encodeURIComponent(parties,'UTF-8')+"&isArchived="+isArchived,
		success: function(request){
		   Ext.getDom("queryDecisionAorList").innerHTML=request.responseText;
		   
		}
	});
}
  	
//查看行政处罚决定书送达回证记录表信息
function queryDecisionAor(decisionAorId){
  	window.showModelessDialog(contextPath+"/execution/decisionaor!decisionAorQueryForword.action?flag=view&decisionAorId="+decisionAorId,"","dialogHeight:550px;dialogWidth:753px;status:no;help=no,resizable=no;edge:sunken;");
  	///window.showModelessDialog(contextPath+"/execution/decisionaor!decisionAorQueryForword.action?flag=view&decisionAorId="+decisionAorId,"","height=590,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
}
 //打印行政处罚决定书送达回证记录表信息
function printDecisionAor(decisionAorId){
	document.getElementById("overViewIframe").src=contextPath+"/execution/decisionaor!decisionAorQueryForword.action?flag=print&decisionAorId="+decisionAorId;
}
  	
//行政处罚决定书送达回证记录表修改转发
function decisionAorUpdateForword(decisionAorId){
  	//window.showModelessDialog(contextPath+"/execution/decisionaor!decisionAorQueryForword.action?flag=update&decisionAorId="+decisionAorId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/decisionaor!decisionAorQueryForword.action?flag=update&decisionAorId="+decisionAorId,"","dialogHeight:485px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	var pageNum=document.getElementById("pageNum").value;
    	queryDecisionAorList(pageNum);
    }
}
  	
//删除行政处罚决定书送达回证记录表
function deleteDecisionAor(decisionAorId){
  	
    Ext.Ajax.request({
		url: contextPath+"/execution/decisionaor!decisionAorDelete.action?decisionAorId="+decisionAorId,
		success: function(request) {
           var data = Ext.util.JSON.decode(request.responseText);
		   if(data!=""){
		      if(data[0].msg=='success'){
		      	  
			      ymPrompt.succeedInfo('行政处罚决定书送达回证记录表信息删除成功！',null,null,'信息提示',function(button){if(button=='ok' || button=='close')queryDecisionAorList('1');});
			   }else{
			      
			      ymPrompt.errorInfo('行政处罚决定书送达回证记录表信息删除失败，请重新删除！',null,null,'信息提示',null);
			   }
		   }
	   } 
   });
}
  	
//进入行政处罚决定书送达回证记录环节的下一环节记录信息
function decisionAorNextAddForword(overViewId,decisionId,pnlPorId){
   	ymPrompt.confirmInfo('请选择您下一步要进行的操作！',400,null,'信息提示',function(button){
    	if(button=='1'){
    	    //添加罚款催缴通知书记录表信息
    		var return_value=window.showModalDialog(contextPath+"/execution/penaltyurge!penaltyUrgeAddForword.action?decisionId="+decisionId,"","dialogHeight:550px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
		    if(return_value != null && return_value != "" && return_value == "true"){
		    	queryDecisionAorList('1');
		    }
    	}else if(button=='2'){
		    //延期（分期）缴纳罚款审批表
		    var return_value=window.showModalDialog(contextPath+"/execution/pnldelay!pnlDelayAddForword.action?overViewId="+overViewId,"","dialogHeight:640px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
		    if(return_value != null && return_value != "" && return_value == "true"){
		    	queryDecisionAorList('1');
		    }
    	}else if(button=='3'){
		    
			Ext.Ajax.request({
				url: contextPath+"/execution/finalapproval!finalApprovalJudge.action?pnlPorId="+pnlPorId+"&overViewId="+overViewId,
				success: function(request) {
		           var data = Ext.util.JSON.decode(request.responseText);
				   
				   if(data!=""){
				      if(data[0].msg=='success'){
				      	  var return_value=window.showModalDialog(contextPath+"/execution/finalapproval!finalApprovalAddForword.action?pnlPorId="+pnlPorId,"","dialogHeight:640px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
					      if(return_value != null && return_value != "" && return_value == "true"){
					    	  queryDecisionAorList('1');
					      }
					  }else if(data[0].msg=='failure'){
					      ymPrompt.confirmInfo('当前案子还存在其他当事人未满足结案条件，是否将当前操作标记为可结案状态，以便其他当事人满足结案条件后进行结案操作！',null,null,'信息提示',function(button){
					    	 if(button=='1'){
					    	    
					    	    Ext.Ajax.request({
									url: contextPath+"/execution/finalapproval!finalApprovalMarker.action?pnlPorId="+pnlPorId+"&overViewId="+overViewId,
									success: function(request) {
							           var data = Ext.util.JSON.decode(request.responseText);
									   
									   if(data!=""){
									      if(data[0].msg=='success'){
									      	   queryDecisionAorList('1');
										  }else{
										       ymPrompt.errorInfo('结案状态标记失败，请重新标记！',null,null,'信息提示',null);
										  }	
									   }
								   } 
							   });
					    	 }
					   	 },null,null,null,null,[[' 是 ','1'],[' 否 ','2']]);
					  }else if(data[0].msg=='failure2'){
					      ymPrompt.errorInfo('系统错误，请重新点击下一步操作！',null,null,'信息提示',null);
					  }
				   }
			   } 
		   });
    	}
   	},null,null,null,null,[['罚款催缴','1'],['罚款延期（分期）','2'],['案件结案','3']]);
}
  	
//**********************************************罚款催缴通知书记录表*************************************************************
//查看罚款催缴通知书记录表列表信息
function queryPenaltyUrgeList(pageNum){
  	var superviseViewTypeId=document.getElementById("superviseViewTypeId").value;
    var insUnit=document.getElementById("insUnit").value.trim();
    document.getElementById("pageNum").value=pageNum;
    var isArchived="0";
    
  	    Ext.Ajax.request({
		url: contextPath+"/execution/penaltyurge!penaltyUrgeList.action?pageNum="+pageNum+"&superviseViewTypeId="+superviseViewTypeId+"&insUnit="+encodeURIComponent(insUnit,'UTF-8')+"&isArchived="+isArchived,
		success: function(request){
		   Ext.getDom("queryPenaltyUrgeList").innerHTML=request.responseText;
		   
		}
	});
}
  	
//查看罚款催缴通知书记录表信息
function queryPenaltyUrge(penaltyUrgeId){
  	window.showModelessDialog(contextPath+"/execution/penaltyurge!penaltyUrgeQueryForword.action?flag=view&penaltyUrgeId="+penaltyUrgeId,"","dialogHeight:550px;dialogWidth:753px;status:no;help=no,resizable=no;edge:sunken;");
  	///window.showModelessDialog(contextPath+"/execution/penaltyurge!penaltyUrgeQueryForword.action?flag=view&penaltyUrgeId="+penaltyUrgeId,"","height=500,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
}

//打印整改复查意见书表信息
function printPenaltyUrge(penaltyUrgeId){
	document.getElementById("overViewIframe").src=contextPath+"/execution/penaltyurge!penaltyUrgeQueryForword.action?flag=print&penaltyUrgeId="+penaltyUrgeId;
}

//罚款催缴通知书记录表修改转发
function penaltyUrgeUpdateForword(penaltyUrgeId){
  	//window.showModelessDialog(contextPath+"/execution/penaltyurge!penaltyUrgeQueryForword.action?flag=update&penaltyUrgeId="+penaltyUrgeId,"","height=500,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/penaltyurge!penaltyUrgeQueryForword.action?flag=update&penaltyUrgeId="+penaltyUrgeId,"","dialogHeight:550px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	var pageNum=document.getElementById("pageNum").value;
    	queryPenaltyUrgeList(pageNum);
    }
}
  	
//删除罚款催缴通知书记录表
function deletePenaltyUrge(penaltyUrgeId){
  	
    Ext.Ajax.request({
		url: contextPath+"/execution/penaltyurge!penaltyUrgeDelete.action?penaltyUrgeId="+penaltyUrgeId,
		success: function(request) {
           var data = Ext.util.JSON.decode(request.responseText);
		   if(data!=""){
		      if(data[0].msg=='success'){
		      	  
			      ymPrompt.succeedInfo('罚款催缴通知书记录表信息删除成功！',null,null,'信息提示',function(button){if(button=='ok' || button=='close')queryPenaltyUrgeList('1');});
			   }else{
			      
			      ymPrompt.errorInfo('罚款催缴通知书记录表信息删除失败，请重新删除！',null,null,'信息提示',null);
			   }
		   }
	   } 
   });
}
  	
//**********************************************罚款催缴通知书送达回证记录表*************************************************************
//添加罚款催缴通知书送达回证记录表信息
function penaltyUrgeAorAddForword(penaltyUrgeId){
  	//window.showModelessDialog(contextPath+"/execution/penaltyurgeaor!penaltyUrgeAorAddForword.action?penaltyUrgeId="+penaltyUrgeId,"","height=580,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/penaltyurgeaor!penaltyUrgeAorAddForword.action?penaltyUrgeId="+penaltyUrgeId,"","dialogHeight:485px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	queryPenaltyUrgeList('1');
    }
}  

//查看罚款催缴通知书送达回证记录表列表信息
function queryPenaltyUrgeAorList(pageNum){
  	var superviseViewTypeId=document.getElementById("superviseViewTypeId").value;
    var insUnit=document.getElementById("insUnit").value.trim();
    document.getElementById("pageNum").value=pageNum;
    var isArchived="0";
    
  	Ext.Ajax.request({
		url: contextPath+"/execution/penaltyurgeaor!penaltyUrgeAorList.action?pageNum="+pageNum+"&superviseViewTypeId="+superviseViewTypeId+"&insUnit="+encodeURIComponent(insUnit,'UTF-8')+"&isArchived="+isArchived,
		success: function(request){
		   Ext.getDom("queryPenaltyUrgeAorList").innerHTML=request.responseText;
		   
		}
	});
}
  	
//查看罚款催缴通知书送达回证记录表信息
function queryPenaltyUrgeAor(penaltyUrgeAorId){
  	window.showModelessDialog(contextPath+"/execution/penaltyurgeaor!penaltyUrgeAorQueryForword.action?flag=view&penaltyUrgeAorId="+penaltyUrgeAorId,"","dialogHeight:550px;dialogWidth:753px;status:no;help=no,resizable=no;edge:sunken;");
  	///window.showModelessDialog(contextPath+"/execution/penaltyurgeaor!penaltyUrgeAorQueryForword.action?flag=view&penaltyUrgeAorId="+penaltyUrgeAorId,"","height=590,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
}
//打印罚款催缴通知书送达回证记录表信息
function printPenaltyUrgeAor(penaltyUrgeAorId){
	document.getElementById("overViewIframe").src=contextPath+"/execution/penaltyurgeaor!penaltyUrgeAorQueryForword.action?flag=print&penaltyUrgeAorId="+penaltyUrgeAorId;
} 	
//罚款催缴通知书送达回证记录表修改转发
function penaltyUrgeAorUpdateForword(penaltyUrgeAorId){
  	//window.showModelessDialog(contextPath+"/execution/penaltyurgeaor!penaltyUrgeAorQueryForword.action?flag=update&penaltyUrgeAorId="+penaltyUrgeAorId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/penaltyurgeaor!penaltyUrgeAorQueryForword.action?flag=update&penaltyUrgeAorId="+penaltyUrgeAorId,"","dialogHeight:488px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	var pageNum=document.getElementById("pageNum").value;
    	queryPenaltyUrgeAorList(pageNum);
    }
}
  	
//删除罚款催缴通知书送达回证记录表
function deletePenaltyUrgeAor(penaltyUrgeAorId){
  	
    Ext.Ajax.request({
		url: contextPath+"/execution/penaltyurgeaor!penaltyUrgeAorDelete.action?penaltyUrgeAorId="+penaltyUrgeAorId,
		success: function(request) {
           var data = Ext.util.JSON.decode(request.responseText);
		   if(data!=""){
		      if(data[0].msg=='success'){
		      	  
			      ymPrompt.succeedInfo('罚款催缴通知书送达回证记录表信息删除成功！',null,null,'信息提示',function(button){if(button=='ok' || button=='close')queryPenaltyUrgeAorList('1');});
			   }else{
			      
			      ymPrompt.errorInfo('罚款催缴通知书送达回证记录表信息删除失败，请重新删除！',null,null,'信息提示',null);
			   }
		   }
	   } 
   });
}

//进入罚款催缴通知书送达回证记录环节的下一环节记录信息
function penaltyUrgeNextAddForword(pnlPorId,overViewId){
   	ymPrompt.confirmInfo('请选择您下一步要进行的操作！',400,null,'信息提示',function(button){
    	if(button=='1'){
    	    if("${userBean.unitTypeId}"=="1"){
		   	    //强制执行申请书
	    	    var return_value=window.showModalDialog(contextPath+"/execution/comexcecution!comExcecutionAddForword.action?overViewId="+overViewId+"&userId=${userBean.userId}","","dialogHeight:365px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
			    if(return_value != null && return_value != "" && return_value == "true"){
			    	queryPenaltyUrgeAorList('1');
			    }
		     }else{
		   	    ymPrompt.confirmInfo('是否移交区局进行强制执行申请操作！',null,null,'信息提示',function(button){
			    	if(button=='1'){
			    	    
			    	    Ext.Ajax.request({
							url: contextPath+"/execution/comexcecution!comExcecutionMarker.action?overViewId="+overViewId,
							success: function(request) {
					           var data = Ext.util.JSON.decode(request.responseText);
							   
							   if(data!=""){
							      if(data[0].msg=='success'){
							      	   ymPrompt.succeedInfo('移交申请提交成功，请耐心等待区局执行结果！',null,null,'信息提示',function(button){if(button=='ok' || button=='close')queryPenaltyUrgeAorList('1');});
								  }else{
								       ymPrompt.errorInfo('移交申请失败，请重新移交申请！',null,null,'信息提示',null);
								  }	
							   }
						   } 
					   });
			    	}
			   	 },null,null,null,null,[[' 是 ','1'],[' 否 ','2']]);
		      }
    	}else if(button=='2'){
		    //延期（分期）缴纳罚款审批表
		    //window.showModelessDialog(contextPath+"/execution/pnldelay!pnlDelayAddForword.action?overViewId="+overViewId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
		    var return_value=window.showModalDialog(contextPath+"/execution/pnldelay!pnlDelayAddForword.action?overViewId="+overViewId,"","dialogHeight:640px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
		    if(return_value != null && return_value != "" && return_value == "true"){
		    	queryPenaltyUrgeAorList('1');
		    }
    	}else if(button=='3'){
		   
			Ext.Ajax.request({
				url: contextPath+"/execution/finalapproval!finalApprovalJudge.action?pnlPorId="+pnlPorId+"&overViewId="+overViewId,
				success: function(request) {
		           var data = Ext.util.JSON.decode(request.responseText);
				   
				   if(data!=""){
				      if(data[0].msg=='success'){
				      	  var return_value=window.showModalDialog(contextPath+"/execution/finalapproval!finalApprovalAddForword.action?pnlPorId="+pnlPorId,"","dialogHeight:640px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
					      if(return_value != null && return_value != "" && return_value == "true"){
					    	  queryPenaltyUrgeAorList('1');
					      }
					  }else if(data[0].msg=='failure'){
					      ymPrompt.confirmInfo('当前案子还存在其他当事人未满足结案条件，是否将当前操作标记为可结案状态，以便其他当事人满足结案条件后进行结案操作！',null,null,'信息提示',function(button){
					    	 if(button=='1'){
					    	    
					    	    Ext.Ajax.request({
									url: contextPath+"/execution/finalapproval!finalApprovalMarker.action?pnlPorId="+pnlPorId+"&overViewId="+overViewId,
									success: function(request) {
							           var data = Ext.util.JSON.decode(request.responseText);
									   
									   if(data!=""){
									      if(data[0].msg=='success'){
									      	   queryPenaltyUrgeAorList('1');
										  }else{
										       ymPrompt.errorInfo('结案状态标记失败，请重新标记！',null,null,'信息提示',null);
										  }	
									   }
								   } 
							   });
					    	 }
					   	 },null,null,null,null,[[' 是 ','1'],[' 否 ','2']]);
					  }else if(data[0].msg=='failure2'){
					      ymPrompt.errorInfo('系统错误，请重新点击下一步操作！',null,null,'信息提示',null);
					  }
				   }
			   } 
		   });
    	}
   	},null,null,null,null,[['申请强制执行','1'],['罚款延期（分期）','2'],['案件结案','3']]);
}

//**********************************************强制执行申请书记录表*************************************************************
//强制执行申请书记录表修改转发
function comExcecutionAddForword(overViewId,userId){
  	//window.showModelessDialog(contextPath+"/execution/comexcecution!comExcecutionAddForword.action?overViewId="+overViewId+"&userId="+userId,"","height=500,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/comexcecution!comExcecutionAddForword.action?overViewId="+overViewId+"&userId="+userId,"","dialogHeight:580px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	queryComExcecutionList('1');
    }
}

//查看强制执行申请书记录表列表信息
function queryComExcecutionList(pageNum){
  	var superviseViewTypeId=document.getElementById("superviseViewTypeId").value;
    var parties=document.getElementById("parties").value.trim();
    var flag=document.getElementById("comExcecutionFlag").value;
    document.getElementById("pageNum").value=pageNum;
    var isArchived="0";
    
  	    Ext.Ajax.request({
		url: contextPath+"/execution/comexcecution!comExcecutionList.action?pageNum="+pageNum+"&superviseViewTypeId="+superviseViewTypeId+"&flag="+flag+"&parties="+encodeURIComponent(parties,'UTF-8')+"&isArchived="+isArchived,
		success: function(request){
		   Ext.getDom("queryComExcecutionList").innerHTML=request.responseText;
		   
		}
	});
}
  	
//查看强制执行申请书记录表信息
function queryComExcecution(comExcecutionId){
  	window.showModelessDialog(contextPath+"/execution/comexcecution!comExcecutionQueryForword.action?flag=view&comExcecutionId="+comExcecutionId,"","dialogHeight:580px;dialogWidth:753px;status:no;help=no,resizable=no;edge:sunken;");
  	///window.showModelessDialog(contextPath+"/execution/comexcecution!comExcecutionQueryForword.action?flag=view&penaltyUrgeId="+penaltyUrgeId,"","height=500,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
}

//打印强制执行申请书记录表信息
function printComExcecution(comExcecutionId){
 	document.getElementById("overViewIframe").src=contextPath+"/execution/comexcecution!comExcecutionQueryForword.action?flag=print&comExcecutionId="+comExcecutionId;
}
  	
//强制执行申请书记录表修改转发
function comExcecutionUpdateForword(comExcecutionId){
  	//window.showModelessDialog(contextPath+"/execution/comexcecution!comExcecutionQueryForword.action?flag=update&penaltyUrgeId="+penaltyUrgeId,"","height=500,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/comexcecution!comExcecutionQueryForword.action?flag=update&comExcecutionId="+comExcecutionId,"","dialogHeight:590px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	var pageNum=document.getElementById("pageNum").value;
    	queryComExcecutionList(pageNum);
    }
}
  
//强制执行申请书记录表移交下级部门
function comExcecutionConfirm(overViewId){
	ymPrompt.confirmInfo('是否移交下级部门操作！',null,null,'信息提示',function(button){
    	if(button=='1'){
    	    
    	    Ext.Ajax.request({
				url: contextPath+"/execution/comexcecution!comExcecutionConfirm.action?overViewId="+overViewId,
				success: function(request) {
		           var data = Ext.util.JSON.decode(request.responseText);
				   
				   if(data!=""){
				      if(data[0].msg=='success'){
				      	   ymPrompt.succeedInfo('移交下级部门成功！',null,null,'信息提示',function(button){if(button=='ok' || button=='close')queryComExcecutionList('1');});
					  }else{
					       ymPrompt.errorInfo('移交下级部门失败，请重新移交！',null,null,'信息提示',null);
					  }	
				   }
			   } 
			});
    	}
   	 },null,null,null,null,[[' 是 ','1'],[' 否 ','2']]);
}  	

//删除强制执行申请书记录表
function deleteComExcecution(comExcecutionId){
  	
    Ext.Ajax.request({
		url: contextPath+"/execution/comexcecution!comExcecutionDelete.action?comExcecutionId="+comExcecutionId,
		success: function(request) {
           var data = Ext.util.JSON.decode(request.responseText);
		   if(data!=""){
		      if(data[0].msg=='success'){
		      	  
			      ymPrompt.succeedInfo('强制执行申请书记录表信息删除成功！',null,null,'信息提示',function(button){if(button=='ok' || button=='close')queryComExcecutionList('1');});
			   }else{
			      
			      ymPrompt.errorInfo('强制执行申请书记录表信息删除失败，请重新删除！',null,null,'信息提示',null);
			   }
		   }
	   } 
   });
}

//**********************************************延期（分期）缴纳罚款审批表*************************************************************/
//查看延期（分期）缴纳罚款审批表列表信息
function queryPnlDelayList(pageNum){
  	var superviseViewTypeId=document.getElementById("superviseViewTypeId").value;
    var parties=document.getElementById("parties").value.trim();
    var pnlDelayDate1=document.getElementById("pnlDelayDate1").value;
    var pnlDelayDate2=document.getElementById("pnlDelayDate2").value;
    document.getElementById("pageNum").value=pageNum;
    var isArchived="0";
    
  	Ext.Ajax.request({
		url: contextPath+"/execution/pnldelay!pnlDelayList.action?pageNum="+pageNum+"&superviseViewTypeId="+superviseViewTypeId+"&parties="+encodeURIComponent(parties,'UTF-8')+"&pnlDelayDate1="+pnlDelayDate1+"&pnlDelayDate2="+pnlDelayDate2+"&isArchived="+isArchived,
		success: function(request){
		   Ext.getDom("queryPnlDelayList").innerHTML=request.responseText;
		   
		}
	});
}
  	
//查看延期（分期）缴纳罚款审批表信息
function queryPnlDelay(pnlDelayId){
 	window.showModelessDialog(contextPath+"/execution/pnldelay!pnlDelayVerifyQueryForword.action?flag=view&pnlDelayId="+pnlDelayId,"","dialogHeight:700px;dialogWidth:770px;status:no;help=no,resizable=no;edge:sunken;");
 	///window.showModelessDialog(contextPath+"/execution/pnldelay!pnlDelayQueryForword.action?flag=view&pnlDelayId="+decisionId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
}

//打印延期（分期）缴纳罚款审批表信息
function printPnlDelay(pnlDelayId){
 	document.getElementById("overViewIframe").src=contextPath+"/execution/pnldelay!pnlDelayVerifyQueryForword.action?flag=print&pnlDelayId="+pnlDelayId;
}

//延期（分期）缴纳罚款审批表修改转发
function pnlDelayUpdateForword(pnlDelayId){
  	//window.showModelessDialog(contextPath+"/execution/pnldelay!pnlDelayQueryForword.action?flag=update&pnlDelayId="+pnlDelayId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/pnldelay!pnlDelayQueryForword.action?flag=update&pnlDelayId="+pnlDelayId,"","dialogHeight:582px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	var pageNum=document.getElementById("pageNum").value;
    	queryPnlDelayList(pageNum);
    }
}
  	
//删除延期（分期）缴纳罚款审批表
function deletePnlDelay(pnlDelayId){
  	
    Ext.Ajax.request({
		url: contextPath+"/execution/pnldelay!pnlDelayDelete.action?pnlDelayId="+pnlDelayId,
		success: function(request) {
           var data = Ext.util.JSON.decode(request.responseText);
		   if(data!=""){
		      if(data[0].msg=='success'){
		      	  
			      ymPrompt.succeedInfo('延期（分期）缴纳罚款审批表信息删除成功！',null,null,'信息提示',function(button){if(button=='ok' || button=='close')queryPnlDelayList('1');});
			   }else{
			      
			      ymPrompt.errorInfo('延期（分期）缴纳罚款审批表信息删除失败，请重新删除！',null,null,'信息提示',null);
			   }
		   }
	   } 
   });
}

//**********************************************延期（分期）缴纳罚款批准书*************************************************************/
//添加延期（分期）缴纳罚款批准书信息
function pnlDelayApprovalAddForword(pnlDelayId){
	//window.showModelessDialog(contextPath+"/execution/pnldelayapproval!pnlDelayApprovalAddForword.action?pnlDelayId="+pnlDelayId,"","height=380,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/pnldelayapproval!pnlDelayApprovalAddForword.action?pnlDelayId="+pnlDelayId,"","dialogHeight:415px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	queryPnlDelayList('1');
    }
}

//查看延期（分期）缴纳罚款批准书列表信息
function queryPnlDelayApprovalList(pageNum){
  	var superviseViewTypeId=document.getElementById("superviseViewTypeId").value;
    var parties=document.getElementById("parties").value.trim();
    document.getElementById("pageNum").value=pageNum;
    var isArchived="0";
    
  	Ext.Ajax.request({
		url: contextPath+"/execution/pnldelayapproval!pnlDelayApprovalList.action?pageNum="+pageNum+"&superviseViewTypeId="+superviseViewTypeId+"&parties="+encodeURIComponent(parties,'UTF-8')+"&isArchived="+isArchived,
		success: function(request){
		   Ext.getDom("queryPnlDelayApprovalList").innerHTML=request.responseText;
		   
		}
	});
}
  	
//查看延期（分期）缴纳罚款批准书信息
function queryPnlDelayApproval(pnlDelayApprovalId){
 	window.showModelessDialog(contextPath+"/execution/pnldelayapproval!pnlDelayApprovalQueryForword.action?flag=view&pnlDelayApprovalId="+pnlDelayApprovalId,"","dialogHeight:415px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
 	///window.showModelessDialog(contextPath+"/execution/pnldelay!pnlDelayQueryForword.action?flag=view&pnlDelayId="+decisionId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
}
  	
//打印延期（分期）缴纳罚款批准书信息
function printPnlDelayApproval(pnlDelayApprovalId){
 	document.getElementById("overViewIframe").src=contextPath+"/execution/pnldelayapproval!pnlDelayApprovalQueryForword.action?flag=print&pnlDelayApprovalId="+pnlDelayApprovalId;
}
 
//延期（分期）缴纳罚款批准书修改转发
function pnlDelayApprovalUpdateForword(pnlDelayApprovalId){
  	//window.showModelessDialog(contextPath+"/execution/pnldelay!pnlDelayQueryForword.action?flag=update&pnlDelayId="+pnlDelayId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/pnldelayapproval!pnlDelayApprovalQueryForword.action?flag=update&pnlDelayApprovalId="+pnlDelayApprovalId,"","dialogHeight:415px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	var pageNum=document.getElementById("pageNum").value;
    	queryPnlDelayApprovalList(pageNum);
    }
}
  	
//删除延期（分期）缴纳罚款批准书
function deletePnlDelayApproval(pnlDelayApprovalId){
  	
    Ext.Ajax.request({
		url: contextPath+"/execution/pnldelayapproval!pnlDelayApprovalDelete.action?pnlDelayApprovalId="+pnlDelayApprovalId,
		success: function(request) {
           var data = Ext.util.JSON.decode(request.responseText);
		   if(data!=""){
		      if(data[0].msg=='success'){
		      	  
			      ymPrompt.succeedInfo('延期（分期）缴纳罚款批准书信息删除成功！',null,null,'信息提示',function(button){if(button=='ok' || button=='close')queryPnlDelayApprovalList('1');});
			   }else{
			      
			      ymPrompt.errorInfo('延期（分期）缴纳罚款批准书信息删除失败，请重新删除！',null,null,'信息提示',null);
			   }
		   }
	   } 
   });
}

//**********************************************结案报批记录表****************************************************************/
//结案报批校验（是否能结案）
function finalApprovalJudge(overViewId,pnlPorId,flag){
	
	Ext.Ajax.request({
		url: contextPath+"/execution/finalapproval!finalApprovalJudge.action?pnlPorId="+pnlPorId+"&overViewId="+overViewId,
		success: function(request) {
           var data = Ext.util.JSON.decode(request.responseText);
		   
		   if(data!=""){
		      if(data[0].msg=='success'){
		      	  var return_value=window.showModalDialog(contextPath+"/execution/finalapproval!finalApprovalAddForword.action?pnlPorId="+pnlPorId,"","dialogHeight:640px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
			      if(return_value != null && return_value != "" && return_value == "true"){
			    	  if(flag=="1"){
			    		  queryDecisionAorList('1');
			    	  }else if(flag=="2"){
			    		  queryPenaltyUrgeAorList('1');
			    	  }else if(flag=="3"){
			    		  queryComExcecutionList('1');
			    	  }else if(flag=="4"){
			    		  queryPnlDelayApprovalList('1');
			    	  }
			      }
			  }else if(data[0].msg=='failure'){
			      ymPrompt.confirmInfo('当前案子还存在其他当事人未满足结案条件，是否将当前操作标记为可结案状态，以便其他当事人满足结案条件后进行结案操作！',null,null,'信息提示',function(button){
			    	 if(button=='1'){
			    	    
			    	    Ext.Ajax.request({
							url: contextPath+"/execution/finalapproval!finalApprovalMarker.action?pnlPorId="+pnlPorId+"&overViewId="+overViewId,
							success: function(request) {
					           var data = Ext.util.JSON.decode(request.responseText);
							   
							   if(data!=""){
							      if(data[0].msg=='success'){
							      	   if(flag=="1"){
								    	   queryDecisionAorList('1');
							    	   }else if(flag=="2"){
							    		   queryPenaltyUrgeAorList('1');
							    	   }else if(flag=="3"){
							    		   queryComExcecutionList('1');
							    	   }else if(flag=="4"){
							    		   queryPnlDelayApprovalList('1');
							    	   }
								  }else{
								       ymPrompt.errorInfo('结案状态标记失败，请重新标记！',null,null,'信息提示',null);
								  }	
							   }
						   } 
					   });
			    	 }
			   	 },null,null,null,null,[[' 是 ','1'],[' 否 ','2']]);
			  }else if(data[0].msg=='failure2'){
			      ymPrompt.errorInfo('系统错误，请重新点击下一步操作！',null,null,'信息提示',null);
			  }
		   }
	   } 
   });
}

//移除能进行结案报批表的标记操作
function finalApprovalRemoveMarker(overViewId,pnlPorId,flag){
	Ext.Ajax.request({
		url: contextPath+"/execution/finalapproval!finalApprovalRemoveMarker.action?pnlPorId="+pnlPorId+"&overViewId="+overViewId,
		success: function(request) {
           var data = Ext.util.JSON.decode(request.responseText);
		   if(data!=""){
		      if(data[0].msg=='success'){
		      	   if(flag=="1"){
			    	
		    	   }else if(flag=="2"){
		    		   queryPenaltyUrgeAorList('1');
		    	   }else if(flag=="3"){
		    	
		    	   }else if(flag=="4"){
		    		   queryPnlDelayApprovalList('1');
		    	   }
			  }else{
			      ymPrompt.errorInfo('结案状态移除标记失败，请重新移除！',null,null,'信息提示',null);
			  }
		   }
	   } 
   });
}

//添加结案报批记录表信息
function finalApprovalAddForword(pnlPorId,flag){
  	//window.showModelessDialog(contextPath+"/execution/finalapproval!finalApprovalAddForword.action?overViewId="+overViewId,"","height=620,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/finalapproval!finalApprovalAddForword.action?pnlPorId="+pnlPorId,"","dialogHeight:640px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	if(flag=="1"){
    	
    	}else if(flag=="2"){
    		queryPenaltyUrgeAorList('1');
    	}else if(flag=="3"){
    	
    	}else if(flag=="4"){
    		queryPnlDelayApprovalList('1');
    	}
    	
    }
} 
  	
//查询结案报批表列表信息
function queryFinalApprovalList(pageNum){
	var superviseViewTypeId=document.getElementById("superviseViewTypeId").value;
	var parties=document.getElementById("parties").value.trim();
    var porDate1=document.getElementById("porDate1").value;
    var porDate2=document.getElementById("porDate2").value;
    document.getElementById("pageNum").value=pageNum;
    var isArchived="0";
    
  	Ext.Ajax.request({
		url: contextPath+"/execution/finalapproval!finalApprovalList.action?pageNum="+pageNum+"&superviseViewTypeId="+superviseViewTypeId+"&parties="+encodeURIComponent(parties,'UTF-8')+"&porDate1="+porDate1+"&porDate2="+porDate2+"&isArchived="+isArchived,
		success: function(request){
		   Ext.getDom("queryFinalApprovalList").innerHTML=request.responseText;
		   
		}
	});
}
   	
//查看结案报批表信息
function queryFinalApproval(finalApprovalId){
   	window.showModelessDialog(contextPath+"/execution/finalapproval!finalApprovalVerifyQueryForword.action?flag=view&finalApprovalId="+finalApprovalId,"","dialogHeight:730px;dialogWidth:770px;status:no;help=no,resizable=no;edge:sunken;");
}
//打印结案报批表信息
function printFinalApproval(finalApprovalId){
	document.getElementById("overViewIframe").src=contextPath+"/execution/finalapproval!finalApprovalVerifyQueryForword.action?flag=print&finalApprovalId="+finalApprovalId;
}  	
//结案报批表修改转发
function finalApprovalUpdateForword(finalApprovalId){
   	//window.showModelessDialog(contextPath+"/execution/finalapproval!finalApprovalQueryForword.action?flag=update&finalApprovalId="+finalApprovalId,"","height=620,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
   	var return_value=window.showModalDialog(contextPath+"/execution/finalapproval!finalApprovalQueryForword.action?flag=update&finalApprovalId="+finalApprovalId,"","dialogHeight:645px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
	if(return_value != null && return_value != "" && return_value == "true"){
	    var pageNum=document.getElementById("pageNum").value;
	    queryFinalApprovalList(pageNum);
	}
}
   	
//删除结案报批表
function deleteFinalApproval(finalApprovalId){
  	
    Ext.Ajax.request({
		url: contextPath+"/execution/finalapproval!finalApprovalDelete.action?finalApprovalId="+finalApprovalId,
		success: function(request) {
           var data = Ext.util.JSON.decode(request.responseText);
		   if(data!=""){
		      if(data[0].msg=='success'){
		      	  
			      ymPrompt.succeedInfo('结案报批表信息删除成功！',null,null,'信息提示',function(button){if(button=='ok' || button=='close')queryFinalApprovalList('1');});
			   }else{
			      
			      ymPrompt.errorInfo('结案报批表信息删除失败，请重新删除！',null,null,'信息提示',null);
			   }
		   }
	   } 
   });
}

//**********************************************卷内目录*************************************************************/
//添加卷内目录信息
function volumeCatalogAddForword(pnlPorId){
	//window.showModelessDialog(contextPath+"/execution/volumecatalog!volumeCatalogAddForword.action?pnlPorId="+pnlPorId,"","height=600,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/volumecatalog!volumeCatalogAddForword.action?pnlPorId="+pnlPorId,"","dialogHeight:500px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	queryFinalApprovalList('1');
    }
}

//查询卷内目录列表信息
function queryVolumeCatalogList(pageNum){
	var superviseViewTypeId=document.getElementById("superviseViewTypeId").value;
	var parties=document.getElementById("parties").value.trim();
    var porDate1=document.getElementById("porDate1").value;
    var porDate2=document.getElementById("porDate2").value;
    document.getElementById("pageNum").value=pageNum;
    var isArchived="0";
    
  	Ext.Ajax.request({
		url: contextPath+"/execution/volumecatalog!volumeCatalogList.action?pageNum="+pageNum+"&superviseViewTypeId="+superviseViewTypeId+"&parties="+encodeURIComponent(parties,'UTF-8')+"&porDate1="+porDate1+"&porDate2="+porDate2+"&isArchived="+isArchived,
		success: function(request){
		   Ext.getDom("queryVolumeCatalogList").innerHTML=request.responseText;
		   
		}
	});
}
  	
//查看卷内目录信息
function queryVolumeCatalog(volumeCatalogId){
 	window.showModelessDialog(contextPath+"/execution/volumecatalog!volumeCatalogQueryForword.action?flag=view&volumeCatalogId="+volumeCatalogId,"","dialogHeight:600px;dialogWidth:770px;status:no;help=no,resizable=no;edge:sunken;");
 	///window.showModelessDialog(contextPath+"/execution/pnldelay!pnlDelayQueryForword.action?flag=view&pnlDelayId="+decisionId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
}
  	
//打印卷内目录信息
function printVolumeCatalog(volumeCatalogId){
 	document.getElementById("overViewIframe").src=contextPath+"/execution/volumecatalog!volumeCatalogQueryForword.action?flag=print&volumeCatalogId="+volumeCatalogId;
}
 
//卷内目录修改转发
function volumeCatalogUpdateForword(volumeCatalogId){
  	//window.showModelessDialog(contextPath+"/execution/volumecatalog!volumeCatalogQueryForword.action?flag=update&volumeCatalogId="+volumeCatalogId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/volumecatalog!volumeCatalogQueryForword.action?flag=update&volumeCatalogId="+volumeCatalogId,"","dialogHeight:500px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	var pageNum=document.getElementById("pageNum").value;
    	queryVolumeCatalogList(pageNum);
    }
}
  	
//删除卷内目录
function deleteVolumeCatalog(volumeCatalogId){
  	
    Ext.Ajax.request({
		url: contextPath+"/execution/volumecatalog!volumeCatalogDelete.action?volumeCatalogId="+volumeCatalogId,
		success: function(request) {
           var data = Ext.util.JSON.decode(request.responseText);
		   if(data!=""){
		      if(data[0].msg=='success'){
		      	  
			      ymPrompt.succeedInfo('卷内目录信息删除成功！',null,null,'信息提示',function(button){if(button=='ok' || button=='close')queryVolumeCatalogList('1');});
			   }else{
			      
			      ymPrompt.errorInfo('卷内目录信息删除失败，请重新删除！',null,null,'信息提示',null);
			   }
		   }
	   } 
   });
}

//**********************************************安全生产违法案件案卷（首页）*************************************************************/
//添加安全生产违法案件案卷（首页）信息
function illegalVolumeAddForword(pnlPorId){
	//window.showModelessDialog(contextPath+"/execution/illegalvolume!illegalVolumeAddForword.action?pnlPorId="+pnlPorId,"","height=600,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/illegalvolume!illegalVolumeAddForword.action?pnlPorId="+pnlPorId,"","dialogHeight:590px;dialogWidth:750px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	queryVolumeCatalogList('1');
    }
}

//查询安全生产违法案件案卷（首页）列表信息
function queryIllegalVolumeList(pageNum){
	var superviseViewTypeId=document.getElementById("superviseViewTypeId").value;
	var parties=document.getElementById("parties").value.trim();
    var porDate1=document.getElementById("porDate1").value;
    var porDate2=document.getElementById("porDate2").value;
    document.getElementById("pageNum").value=pageNum;
    var isArchived="1";
    
  	Ext.Ajax.request({
		url: contextPath+"/execution/illegalvolume!illegalVolumeList.action?pageNum="+pageNum+"&superviseViewTypeId="+superviseViewTypeId+"&parties="+encodeURIComponent(parties,'UTF-8')+"&porDate1="+porDate1+"&porDate2="+porDate2+"&isArchived="+isArchived,
		success: function(request){
		   Ext.getDom("queryIllegalVolumeList").innerHTML=request.responseText;
		   
		}
	});
}
  	
//查看安全生产违法案件案卷（首页）信息
function queryIllegalVolume(illegalVolumeId){
 	window.showModelessDialog(contextPath+"/execution/illegalvolume!illegalVolumeQueryForword.action?flag=view&illegalVolumeId="+illegalVolumeId,"","dialogHeight:590px;dialogWidth:753px;status:no;help=no,resizable=no;edge:sunken;");
 	///window.showModelessDialog(contextPath+"/execution/pnldelay!pnlDelayQueryForword.action?flag=view&pnlDelayId="+decisionId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
}
  	
//打印安全生产违法案件案卷（首页）信息
function printIllegalVolume(illegalVolumeId){
 	document.getElementById("overViewIframe").src=contextPath+"/execution/illegalvolume!illegalVolumeQueryForword.action?flag=print&illegalVolumeId="+illegalVolumeId;
}
 
//安全生产违法案件案卷（首页）修改转发
function illegalVolumeUpdateForword(illegalVolumeId){
  	//window.showModelessDialog(contextPath+"/execution/illegalvolume!illegalVolumeQueryForword.action?flag=update&illegalVolumeId="+illegalVolumeId,"","height=768,width=766,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no");
  	var return_value=window.showModalDialog(contextPath+"/execution/illegalvolume!illegalVolumeQueryForword.action?flag=update&illegalVolumeId="+illegalVolumeId,"","dialogHeight:500px;dialogWidth:766px;status:no;help=no,resizable=no;edge:sunken;");
    if(return_value != null && return_value != "" && return_value == "true"){
    	var pageNum=document.getElementById("pageNum").value;
    	queryIllegalVolumeList(pageNum);
    }
}
  	
//删除安全生产违法案件案卷（首页）
function deleteIllegalVolume(illegalVolumeId){
  	
    Ext.Ajax.request({
		url: contextPath+"/execution/illegalvolume!illegalVolumeDelete.action?illegalVolumeId="+illegalVolumeId,
		success: function(request) {
           var data = Ext.util.JSON.decode(request.responseText);
		   if(data!=""){
		      if(data[0].msg=='success'){
		      	  
			      ymPrompt.succeedInfo('安全生产违法案件案卷（首页）信息删除成功！',null,null,'信息提示',function(button){if(button=='ok' || button=='close')queryIllegalVolumeList('1');});
			   }else{
			      
			      ymPrompt.errorInfo('安全生产违法案件案卷（首页）信息删除失败，请重新删除！',null,null,'信息提示',null);
			   }
		   }
	   } 
   });
}